Class ExternalAuthenticationService
- java.lang.Object
-
- io.jans.service.custom.script.ExternalScriptService
-
- io.jans.as.server.service.external.ExternalAuthenticationService
-
- All Implemented Interfaces:
Serializable
@ApplicationScoped public class ExternalAuthenticationService extends io.jans.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 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 Map<String,Integer>
acrToLevelMapping()
protected void
addExternalConfigurations(List<io.jans.model.custom.script.conf.CustomScriptConfiguration> newCustomScriptConfigurations)
io.jans.model.custom.script.conf.CustomScriptConfiguration
determineCustomScriptConfiguration(io.jans.model.AuthenticationScriptUsageType usageType, int authStep, String acr)
io.jans.model.custom.script.conf.CustomScriptConfiguration
determineCustomScriptConfiguration(io.jans.model.AuthenticationScriptUsageType usageType, List<String> acrValues)
io.jans.model.custom.script.conf.CustomScriptConfiguration
determineExternalAuthenticatorForWorkflow(io.jans.model.AuthenticationScriptUsageType usageType, io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
boolean
executeExternalAuthenticate(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters, int step)
int
executeExternalGetApiVersion(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
int
executeExternalGetCountAuthenticationSteps(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
List<String>
executeExternalGetExtraParametersForStep(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, int step)
String
executeExternalGetPageForStep(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, int step)
boolean
executeExternalLogout(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters)
boolean
executeExternalPrepareForStep(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters, int step)
List<String>
getAcrValuesList()
List<String>
getAuthModesByAcrValues(List<String> acrValues)
io.jans.model.custom.script.conf.CustomScriptConfiguration
getCustomScriptConfiguration(io.jans.model.AuthenticationScriptUsageType usageType, String name)
io.jans.model.custom.script.conf.CustomScriptConfiguration
getCustomScriptConfigurationByName(String name)
List<io.jans.model.custom.script.conf.CustomScriptConfiguration>
getCustomScriptConfigurationsMap()
io.jans.model.custom.script.conf.CustomScriptConfiguration
getDefaultExternalAuthenticator(io.jans.model.AuthenticationScriptUsageType usageType)
io.jans.model.custom.script.conf.CustomScriptConfiguration
getExternalAuthenticatorByAuthLevel(io.jans.model.AuthenticationScriptUsageType usageType, int authLevel)
String
getLogoutExternalUrl(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters)
int
getNextStep(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters, int step)
boolean
isEnabled(io.jans.model.AuthenticationScriptUsageType usageType)
Map<Integer,Set<String>>
levelToAcrMapping()
void
reloadAuthScript(String event)
protected void
reloadExternal()
String
scriptName(String acr)
void
setCustomScriptConfigurationsMapByUsageType(Map<io.jans.model.AuthenticationScriptUsageType,List<io.jans.model.custom.script.conf.CustomScriptConfiguration>> customScriptConfigurationsMapByUsageType)
void
setDefaultExternalAuthenticators(Map<io.jans.model.AuthenticationScriptUsageType,io.jans.model.custom.script.conf.CustomScriptConfiguration> defaultExternalAuthenticators)
-
Methods inherited from class io.jans.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 String MODIFIED_INTERNAL_TYPES_EVENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
reloadAuthScript
public void reloadAuthScript(@Observes @ReloadAuthScript String event)
-
reloadExternal
protected void reloadExternal()
- Overrides:
reloadExternal
in classio.jans.service.custom.script.ExternalScriptService
-
addExternalConfigurations
protected void addExternalConfigurations(List<io.jans.model.custom.script.conf.CustomScriptConfiguration> newCustomScriptConfigurations)
- Overrides:
addExternalConfigurations
in classio.jans.service.custom.script.ExternalScriptService
-
executeExternalGetCountAuthenticationSteps
public int executeExternalGetCountAuthenticationSteps(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
-
executeExternalAuthenticate
public boolean executeExternalAuthenticate(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters, int step)
-
getNextStep
public int getNextStep(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters, int step)
-
executeExternalLogout
public boolean executeExternalLogout(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters)
-
getLogoutExternalUrl
public String getLogoutExternalUrl(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters)
-
executeExternalPrepareForStep
public boolean executeExternalPrepareForStep(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, Map<String,String[]> requestParameters, int step)
-
executeExternalGetExtraParametersForStep
public List<String> executeExternalGetExtraParametersForStep(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, int step)
-
executeExternalGetPageForStep
public String executeExternalGetPageForStep(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration, int step)
-
executeExternalGetApiVersion
public int executeExternalGetApiVersion(io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
- Overrides:
executeExternalGetApiVersion
in classio.jans.service.custom.script.ExternalScriptService
-
isEnabled
public boolean isEnabled(io.jans.model.AuthenticationScriptUsageType usageType)
-
getExternalAuthenticatorByAuthLevel
public io.jans.model.custom.script.conf.CustomScriptConfiguration getExternalAuthenticatorByAuthLevel(io.jans.model.AuthenticationScriptUsageType usageType, int authLevel)
-
determineCustomScriptConfiguration
public io.jans.model.custom.script.conf.CustomScriptConfiguration determineCustomScriptConfiguration(io.jans.model.AuthenticationScriptUsageType usageType, int authStep, String acr)
-
determineCustomScriptConfiguration
public io.jans.model.custom.script.conf.CustomScriptConfiguration determineCustomScriptConfiguration(io.jans.model.AuthenticationScriptUsageType usageType, List<String> acrValues)
-
determineExternalAuthenticatorForWorkflow
public io.jans.model.custom.script.conf.CustomScriptConfiguration determineExternalAuthenticatorForWorkflow(io.jans.model.AuthenticationScriptUsageType usageType, io.jans.model.custom.script.conf.CustomScriptConfiguration customScriptConfiguration)
-
getDefaultExternalAuthenticator
public io.jans.model.custom.script.conf.CustomScriptConfiguration getDefaultExternalAuthenticator(io.jans.model.AuthenticationScriptUsageType usageType)
-
getCustomScriptConfiguration
public io.jans.model.custom.script.conf.CustomScriptConfiguration getCustomScriptConfiguration(io.jans.model.AuthenticationScriptUsageType usageType, String name)
-
getCustomScriptConfigurationByName
public io.jans.model.custom.script.conf.CustomScriptConfiguration getCustomScriptConfigurationByName(String name)
- Overrides:
getCustomScriptConfigurationByName
in classio.jans.service.custom.script.ExternalScriptService
-
getCustomScriptConfigurationsMap
public List<io.jans.model.custom.script.conf.CustomScriptConfiguration> getCustomScriptConfigurationsMap()
-
setCustomScriptConfigurationsMapByUsageType
public void setCustomScriptConfigurationsMapByUsageType(Map<io.jans.model.AuthenticationScriptUsageType,List<io.jans.model.custom.script.conf.CustomScriptConfiguration>> customScriptConfigurationsMapByUsageType)
-
setDefaultExternalAuthenticators
public void setDefaultExternalAuthenticators(Map<io.jans.model.AuthenticationScriptUsageType,io.jans.model.custom.script.conf.CustomScriptConfiguration> defaultExternalAuthenticators)
-
-