Interface AuthenticationPolicy

  • All Superinterfaces:
    org.springframework.core.Ordered
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface AuthenticationPolicy
    extends org.springframework.core.Ordered
    Strategy interface for pluggable authentication security policies.
    Since:
    4.0.0
    • Method Detail

      • isSatisfiedBy

        boolean isSatisfiedBy​(Authentication authentication,
                              java.util.Set<AuthenticationHandler> authenticationHandlers)
                       throws java.lang.Exception
        Determines whether an authentication event is satisfied by arbitrary security policy.
        Parameters:
        authentication - Authentication event to examine for compliance with security policy.
        authenticationHandlers - the authentication handlers selected for this transaction.
        Returns:
        True if authentication isSatisfiedBy security policy, false otherwise.
        Throws:
        java.lang.Exception - the exception
      • getOrder

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