Package org.gluu.oxauth.service.external
Class ExternalAuthenticationService
- java.lang.Object
-
- org.gluu.service.custom.script.ExternalScriptService
-
- org.gluu.oxauth.service.external.ExternalAuthenticationService
-
- All Implemented Interfaces:
java.io.Serializable
@ApplicationScoped public class ExternalAuthenticationService extends org.gluu.service.custom.script.ExternalScriptService
Provides factory methods needed to create external authenticator- Author:
- Yuriy Movchan Date: 21/08/2012
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MODIFIED_INTERNAL_TYPES_EVENT_TYPE
-
Constructor Summary
Constructors Constructor Description ExternalAuthenticationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Integer>
acrToLevelMapping()
protected void
addExternalConfigurations(java.util.List<org.gluu.model.custom.script.conf.CustomScriptConfiguration> newCustomScriptConfigurations)
org.gluu.model.custom.script.conf.CustomScriptConfiguration
determineCustomScriptConfiguration(org.gluu.model.AuthenticationScriptUsageType usageType, int authStep, java.lang.String acr)
org.gluu.model.custom.script.conf.CustomScriptConfiguration
determineCustomScriptConfiguration(org.gluu.model.AuthenticationScriptUsageType usageType, java.util.List<java.lang.String> acrValues)
org.gluu.model.custom.script.conf.CustomScriptConfiguration
determineExternalAuthenticatorForWorkflow(org.gluu.model.AuthenticationScriptUsageType usageType, org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
boolean
executeExternalAuthenticate(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters, int step)
int
executeExternalGetApiVersion(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
int
executeExternalGetCountAuthenticationSteps(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
java.util.List<java.lang.String>
executeExternalGetExtraParametersForStep(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, int step)
java.lang.String
executeExternalGetPageForStep(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, int step)
boolean
executeExternalLogout(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters)
boolean
executeExternalPrepareForStep(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters, int step)
java.util.List<java.lang.String>
getAcrValuesList()
java.util.List<java.lang.String>
getAuthModesByAcrValues(java.util.List<java.lang.String> acrValues)
org.gluu.model.custom.script.conf.CustomScriptConfiguration
getCustomScriptConfiguration(org.gluu.model.AuthenticationScriptUsageType usageType, java.lang.String name)
org.gluu.model.custom.script.conf.CustomScriptConfiguration
getCustomScriptConfigurationByName(java.lang.String name)
java.util.List<org.gluu.model.custom.script.conf.CustomScriptConfiguration>
getCustomScriptConfigurationsMap()
org.gluu.model.custom.script.conf.CustomScriptConfiguration
getDefaultExternalAuthenticator(org.gluu.model.AuthenticationScriptUsageType usageType)
org.gluu.model.custom.script.conf.CustomScriptConfiguration
getExternalAuthenticatorByAuthLevel(org.gluu.model.AuthenticationScriptUsageType usageType, int authLevel)
java.lang.String
getLogoutExternalUrl(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters)
int
getNextStep(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters, int step)
boolean
isEnabled(org.gluu.model.AuthenticationScriptUsageType usageType)
java.util.Map<java.lang.Integer,java.util.Set<java.lang.String>>
levelToAcrMapping()
void
reloadAuthScript(java.lang.String event)
protected void
reloadExternal()
java.lang.String
scriptName(java.lang.String acr)
-
Methods inherited from class org.gluu.service.custom.script.ExternalScriptService
clearScriptError, configure, determineDefaultCustomScriptConfiguration, getCustomScriptConfigurations, getCustomScriptConfigurationsByDns, getCustomScriptType, getDefaultExternalCustomScript, init, isEnabled, isLoaded, reload, saveScriptError
-
-
-
-
Field Detail
-
MODIFIED_INTERNAL_TYPES_EVENT_TYPE
public static final java.lang.String MODIFIED_INTERNAL_TYPES_EVENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
reloadAuthScript
public void reloadAuthScript(@Observes @ReloadAuthScript java.lang.String event)
-
scriptName
public java.lang.String scriptName(java.lang.String acr)
-
reloadExternal
protected void reloadExternal()
- Overrides:
reloadExternal
in classorg.gluu.service.custom.script.ExternalScriptService
-
addExternalConfigurations
protected void addExternalConfigurations(java.util.List<org.gluu.model.custom.script.conf.CustomScriptConfiguration> newCustomScriptConfigurations)
- Overrides:
addExternalConfigurations
in classorg.gluu.service.custom.script.ExternalScriptService
-
executeExternalGetCountAuthenticationSteps
public int executeExternalGetCountAuthenticationSteps(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
-
executeExternalAuthenticate
public boolean executeExternalAuthenticate(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters, int step)
-
getNextStep
public int getNextStep(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters, int step)
-
executeExternalLogout
public boolean executeExternalLogout(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters)
-
getLogoutExternalUrl
public java.lang.String getLogoutExternalUrl(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters)
-
executeExternalPrepareForStep
public boolean executeExternalPrepareForStep(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, java.util.Map<java.lang.String,java.lang.String[]> requestParameters, int step)
-
executeExternalGetExtraParametersForStep
public java.util.List<java.lang.String> executeExternalGetExtraParametersForStep(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, int step)
-
executeExternalGetPageForStep
public java.lang.String executeExternalGetPageForStep(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, int step)
-
executeExternalGetApiVersion
public int executeExternalGetApiVersion(org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
- Overrides:
executeExternalGetApiVersion
in classorg.gluu.service.custom.script.ExternalScriptService
-
isEnabled
public boolean isEnabled(org.gluu.model.AuthenticationScriptUsageType usageType)
-
getExternalAuthenticatorByAuthLevel
public org.gluu.model.custom.script.conf.CustomScriptConfiguration getExternalAuthenticatorByAuthLevel(org.gluu.model.AuthenticationScriptUsageType usageType, int authLevel)
-
determineCustomScriptConfiguration
public org.gluu.model.custom.script.conf.CustomScriptConfiguration determineCustomScriptConfiguration(org.gluu.model.AuthenticationScriptUsageType usageType, int authStep, java.lang.String acr)
-
determineCustomScriptConfiguration
public org.gluu.model.custom.script.conf.CustomScriptConfiguration determineCustomScriptConfiguration(org.gluu.model.AuthenticationScriptUsageType usageType, java.util.List<java.lang.String> acrValues)
-
getAuthModesByAcrValues
public java.util.List<java.lang.String> getAuthModesByAcrValues(java.util.List<java.lang.String> acrValues)
-
determineExternalAuthenticatorForWorkflow
public org.gluu.model.custom.script.conf.CustomScriptConfiguration determineExternalAuthenticatorForWorkflow(org.gluu.model.AuthenticationScriptUsageType usageType, org.gluu.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
-
getDefaultExternalAuthenticator
public org.gluu.model.custom.script.conf.CustomScriptConfiguration getDefaultExternalAuthenticator(org.gluu.model.AuthenticationScriptUsageType usageType)
-
getCustomScriptConfiguration
public org.gluu.model.custom.script.conf.CustomScriptConfiguration getCustomScriptConfiguration(org.gluu.model.AuthenticationScriptUsageType usageType, java.lang.String name)
-
getCustomScriptConfigurationByName
public org.gluu.model.custom.script.conf.CustomScriptConfiguration getCustomScriptConfigurationByName(java.lang.String name)
- Overrides:
getCustomScriptConfigurationByName
in classorg.gluu.service.custom.script.ExternalScriptService
-
getCustomScriptConfigurationsMap
public java.util.List<org.gluu.model.custom.script.conf.CustomScriptConfiguration> getCustomScriptConfigurationsMap()
-
getAcrValuesList
public java.util.List<java.lang.String> getAcrValuesList()
-
levelToAcrMapping
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.String>> levelToAcrMapping()
-
acrToLevelMapping
public java.util.Map<java.lang.String,java.lang.Integer> acrToLevelMapping()
-
-