Class 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
    • Constructor Detail

      • ExternalAuthenticationService

        public ExternalAuthenticationService()
    • Method Detail

      • reloadExternal

        protected void reloadExternal()
        Overrides:
        reloadExternal in class io.jans.service.custom.script.ExternalScriptService
      • addExternalConfigurations

        protected void addExternalConfigurations​(List<io.jans.model.custom.script.conf.CustomScriptConfiguration> newCustomScriptConfigurations)
        Overrides:
        addExternalConfigurations in class io.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 class io.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 class io.jans.service.custom.script.ExternalScriptService
      • getCustomScriptConfigurationsMap

        public List<io.jans.model.custom.script.conf.CustomScriptConfiguration> getCustomScriptConfigurationsMap()
      • getAcrValuesList

        public List<String> getAcrValuesList()
      • 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)