Interface ChainingMultifactorAuthenticationProvider

    • Field Detail

      • DEFAULT_IDENTIFIER

        static final java.lang.String DEFAULT_IDENTIFIER
        The identifier for the chained provider.
        See Also:
        Constant Field Values
    • Method Detail

      • getMultifactorAuthenticationProviders

        java.util.Collection<MultifactorAuthenticationProvider> getMultifactorAuthenticationProviders()
        Gets multifactor authentication providers.
        Returns:
        the multifactor authentication providers
      • addMultifactorAuthenticationProviders

        void addMultifactorAuthenticationProviders​(java.util.Collection<MultifactorAuthenticationProvider> providers)
        Add multifactor authentication providers.
        Parameters:
        providers - the providers
      • addMultifactorAuthenticationProviders

        default void addMultifactorAuthenticationProviders​(MultifactorAuthenticationProvider... providers)
        Add multifactor authentication providers.
        Parameters:
        providers - the providers
      • isAvailable

        default boolean isAvailable​(org.apereo.cas.services.RegisteredService service)
                             throws org.apereo.cas.authentication.AuthenticationException
        Description copied from interface: MultifactorAuthenticationProvider
        Ensure the provider is available.
        Specified by:
        isAvailable in interface MultifactorAuthenticationProvider
        Parameters:
        service - - the service
        Returns:
        true /false flag once verification is successful.
        Throws:
        org.apereo.cas.authentication.AuthenticationException - the authentication exception
      • matches

        default boolean matches​(java.lang.String identifier)
        Description copied from interface: MultifactorAuthenticationProvider
        Does provider match/support this identifier? The identifier passed may be formed as a regular expression.
        Specified by:
        matches in interface MultifactorAuthenticationProvider
        Parameters:
        identifier - the identifier
        Returns:
        true/false
      • getFailureMode

        default org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties.MultifactorAuthenticationProviderFailureModes getFailureMode()
        Description copied from interface: MultifactorAuthenticationProvider
        This method will return the failure mode for the provider.
        Specified by:
        getFailureMode in interface MultifactorAuthenticationProvider
        Returns:
        the FailureMode
      • getOrder

        default int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered