Class NotPreventedAuthenticationPolicy

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.authentication.AuthenticationPolicy, org.springframework.core.Ordered

    public class NotPreventedAuthenticationPolicy
    extends AtLeastOneCredentialValidatedAuthenticationPolicy
    Authentication policy that defines success as at least one authentication success and no authentication attempts that were prevented by system errors. This policy may be a desirable alternative to AtLeastOneCredentialValidatedAuthenticationPolicy for cases where deployers wish to fail closed for indeterminate security events.
    Since:
    4.0.0
    See Also:
    Serialized Form
    • Field Summary

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

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apereo.cas.authentication.AuthenticationPolicyExecutionResult isSatisfiedBy​(org.apereo.cas.authentication.Authentication authentication, java.util.Set<org.apereo.cas.authentication.AuthenticationHandler> authenticationHandlers, org.springframework.context.ConfigurableApplicationContext applicationContext, java.util.Optional<java.io.Serializable> assertion)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.AuthenticationPolicy

        getName, getOrder, shouldResumeOnFailure
    • Constructor Detail

      • NotPreventedAuthenticationPolicy

        public NotPreventedAuthenticationPolicy()
    • Method Detail

      • isSatisfiedBy

        public org.apereo.cas.authentication.AuthenticationPolicyExecutionResult isSatisfiedBy​(org.apereo.cas.authentication.Authentication authentication,
                                                                                               java.util.Set<org.apereo.cas.authentication.AuthenticationHandler> authenticationHandlers,
                                                                                               org.springframework.context.ConfigurableApplicationContext applicationContext,
                                                                                               java.util.Optional<java.io.Serializable> assertion)
                                                                                        throws java.lang.Exception
        Specified by:
        isSatisfiedBy in interface org.apereo.cas.authentication.AuthenticationPolicy
        Overrides:
        isSatisfiedBy in class AtLeastOneCredentialValidatedAuthenticationPolicy
        Throws:
        java.lang.Exception