Class OA2ClientFunctorScriptsFactory<V extends OA2ClientFunctorScripts>
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.scripting.ScriptSetFactory<V>
-
- org.oa4mp.delegation.server.functor.scripts.server.ClientFunctorScriptsFactory<V>
-
- org.oa4mp.server.loader.oauth2.state.OA2ClientFunctorScriptsFactory<V>
-
- All Implemented Interfaces:
javax.inject.Provider<V>
public class OA2ClientFunctorScriptsFactory<V extends OA2ClientFunctorScripts> extends ClientFunctorScriptsFactory<V>
Created by Jeff Gaynor
on 4/17/18 at 2:51 PM
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILE_SYSTEM_DEFAULT
static String
HEADER_DEFAULT
static String
LDAP_DEFAULT
static String
NCSA_DEFAULT
-
Fields inherited from class edu.uiuc.ncsa.oa4mp.delegation.oa2.server.scripts.functor.ClientFunctorScriptsFactory
functorFactory
-
-
Constructor Summary
Constructors Constructor Description OA2ClientFunctorScriptsFactory(net.sf.json.JSONObject config, edu.uiuc.ncsa.security.util.functor.JFunctorFactory functorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createClaimSource(V cc, net.sf.json.JSONObject json)
Create the claims sources from the configuration runtime information and set it in the configuration.void
extractClaimsSource(edu.uiuc.ncsa.security.util.functor.parser.FunctorScript script, net.sf.json.JSONObject json, LinkedList<ClaimSource> claimSources)
V
get()
Note the sequence here.protected Map<String,ClaimSourceConfiguration>
getClaimSourceConfigurations(net.sf.json.JSONObject jsonObject)
protected ClaimSource
setupClaimSource(String alias, String configName, net.sf.json.JSONObject json)
Setup the claim sources from the configuration given the alias of the source to use and the name of the configuration to use.void
setupPostProcessing(V cc, net.sf.json.JSONObject json)
void
setupPreProcessing(V cc, net.sf.json.JSONObject json)
-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.oa2.server.scripts.functor.ClientFunctorScriptsFactory
newInstance
-
-
-
-
Field Detail
-
LDAP_DEFAULT
public static final String LDAP_DEFAULT
- See Also:
- Constant Field Values
-
HEADER_DEFAULT
public static final String HEADER_DEFAULT
- See Also:
- Constant Field Values
-
NCSA_DEFAULT
public static final String NCSA_DEFAULT
- See Also:
- Constant Field Values
-
FILE_SYSTEM_DEFAULT
public static final String FILE_SYSTEM_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
createClaimSource
public void createClaimSource(V cc, net.sf.json.JSONObject json)
Create the claims sources from the configuration runtime information and set it in the configuration. You must do this before using the sources. Response is never null- Parameters:
json
-cc
-
-
extractClaimsSource
public void extractClaimsSource(edu.uiuc.ncsa.security.util.functor.parser.FunctorScript script, net.sf.json.JSONObject json, LinkedList<ClaimSource> claimSources)
-
getClaimSourceConfigurations
protected Map<String,ClaimSourceConfiguration> getClaimSourceConfigurations(net.sf.json.JSONObject jsonObject)
-
setupClaimSource
protected ClaimSource setupClaimSource(String alias, String configName, net.sf.json.JSONObject json)
Setup the claim sources from the configuration given the alias of the source to use and the name of the configuration to use.- Parameters:
alias
-configName
-json
- - the TOP LEVEL configuration object- Returns:
-
setupPreProcessing
public void setupPreProcessing(V cc, net.sf.json.JSONObject json)
-
setupPostProcessing
public void setupPostProcessing(V cc, net.sf.json.JSONObject json)
-
get
public V get()
Description copied from class:ClientFunctorScriptsFactory
Note the sequence here. This provides an uninitiailized script. TheClientFunctorScriptsFactory.newInstance()
populates this, so even though this is a provider, generally you want to callClientFunctorScriptsFactory.newInstance()
.- Specified by:
get
in interfacejavax.inject.Provider<V extends OA2ClientFunctorScripts>
- Overrides:
get
in classClientFunctorScriptsFactory<V extends OA2ClientFunctorScripts>
-
-