Interface MultifactorAuthenticationProvider

  • All Superinterfaces:
    org.springframework.core.Ordered, java.io.Serializable
    All Known Subinterfaces:
    ChainingMultifactorAuthenticationProvider

    public interface MultifactorAuthenticationProvider
    extends java.io.Serializable, org.springframework.core.Ordered
    This is MultifactorAuthenticationProvider that describes an external authentication entity/provider matched against a registered service. Providers may be given the ability to check authentication provider for availability before actually producing a relevant identifier.
    Since:
    5.0.0
    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Detail

      • isAvailable

        boolean isAvailable​(org.apereo.cas.services.RegisteredService service)
                     throws org.apereo.cas.authentication.AuthenticationException
        Ensure the provider is available.
        Parameters:
        service - - the service
        Returns:
        true /false flag once verification is successful.
        Throws:
        org.apereo.cas.authentication.AuthenticationException - the authentication exception
      • getId

        java.lang.String getId()
        Gets id for this provider.
        Returns:
        the id
      • getFriendlyName

        java.lang.String getFriendlyName()
        Gets the friendly-name for this provider.
        Returns:
        the name
      • matches

        boolean matches​(java.lang.String identifier)
        Does provider match/support this identifier? The identifier passed may be formed as a regular expression.
        Parameters:
        identifier - the identifier
        Returns:
        true/false
      • getFailureMode

        org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties.MultifactorAuthenticationProviderFailureModes getFailureMode()
        This method will return the failure mode for the provider.
        Returns:
        the FailureMode