Interface MultifactorAuthenticationProviderBypassEvaluator

    • Field Detail

      • AUTHENTICATION_ATTRIBUTE_BYPASS_MFA

        static final java.lang.String AUTHENTICATION_ATTRIBUTE_BYPASS_MFA
        bypass mfa authn attribute.
        See Also:
        Constant Field Values
      • AUTHENTICATION_ATTRIBUTE_BYPASS_MFA_PROVIDER

        static final java.lang.String AUTHENTICATION_ATTRIBUTE_BYPASS_MFA_PROVIDER
        bypass mfa for provider id authn attribute.
        See Also:
        Constant Field Values
    • Method Detail

      • shouldMultifactorAuthenticationProviderExecute

        boolean shouldMultifactorAuthenticationProviderExecute​(org.apereo.cas.authentication.Authentication authentication,
                                                               org.apereo.cas.services.RegisteredService registeredService,
                                                               MultifactorAuthenticationProvider provider,
                                                               javax.servlet.http.HttpServletRequest request)
        Eval current bypass rules for the provider.
        Parameters:
        authentication - the authentication
        registeredService - the registered service in question
        provider - the provider
        request - the request
        Returns:
        false is request isn't supported and can be bypassed. true otherwise.
      • isMultifactorAuthenticationBypassed

        default boolean isMultifactorAuthenticationBypassed​(org.apereo.cas.authentication.Authentication authentication,
                                                            java.lang.String requestedContext)
        Indicates whether the authentication attempt carries information that would signal a bypassed attempt.
        Parameters:
        authentication - the authentication
        requestedContext - the requested context
        Returns:
        true/false
      • forgetBypass

        default void forgetBypass​(org.apereo.cas.authentication.Authentication authentication)
        Method will remove any previous bypass set in the authentication.
        Parameters:
        authentication - - the authentication
      • rememberBypass

        default void rememberBypass​(org.apereo.cas.authentication.Authentication authentication,
                                    MultifactorAuthenticationProvider provider)
        Method will set the bypass into the authentication.
        Parameters:
        authentication - - the authentication
        provider - - the provider
      • getOrder

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

        java.lang.String getProviderId()
        Gets provider id of this bypass evaluator.
        Returns:
        the id
      • getId

        java.lang.String getId()
        Gets id.
        Returns:
        the id
      • size

        default int size()
        Size.
        Returns:
        the int
      • isEmpty

        default boolean isEmpty()
        Is empty?.
        Returns:
        true/false
      • belongsToMultifactorAuthenticationProvider

        java.util.Optional<MultifactorAuthenticationProviderBypassEvaluator> belongsToMultifactorAuthenticationProvider​(java.lang.String providerId)
        Indicate whether this bypass belongs to given multifactor authentication provider.
        Parameters:
        providerId - the provider id
        Returns:
        the provider if a match, otherwise, empty.