Class BaseAuthenticationHandlerAuthenticationPolicy

java.lang.Object
org.apereo.cas.authentication.policy.BaseAuthenticationPolicy
org.apereo.cas.authentication.policy.BaseAuthenticationHandlerAuthenticationPolicy
All Implemented Interfaces:
Serializable, org.apereo.cas.authentication.AuthenticationPolicy, org.apereo.cas.util.NamedObject, org.springframework.core.Ordered
Direct Known Subclasses:
ExcludedAuthenticationHandlerAuthenticationPolicy, RequiredAuthenticationHandlerAuthenticationPolicy

public abstract class BaseAuthenticationHandlerAuthenticationPolicy extends BaseAuthenticationPolicy
Authentication security policy that is satisfied iff a specified authentication handler successfully authenticates at least one credential.
Since:
4.0.0
See Also:
  • Method Details

    • isSatisfiedBy

      public org.apereo.cas.authentication.AuthenticationPolicyExecutionResult isSatisfiedBy(org.apereo.cas.authentication.Authentication authn, Set<org.apereo.cas.authentication.AuthenticationHandler> authenticationHandlers, org.springframework.context.ConfigurableApplicationContext applicationContext, Map<String,? extends Serializable> context)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class BaseAuthenticationPolicy
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseAuthenticationPolicy
    • setHandlerNames

      public BaseAuthenticationHandlerAuthenticationPolicy setHandlerNames(Set<String> handlerNames)
      Authentication handler name that is required to satisfy policy.
      Returns:
      this.
    • setTryAll

      public BaseAuthenticationHandlerAuthenticationPolicy setTryAll(boolean tryAll)
      Flag to try all credentials before policy is satisfied.
      Returns:
      this.
    • getHandlerNames

      public Set<String> getHandlerNames()
      Authentication handler name that is required to satisfy policy.
    • isTryAll

      public boolean isTryAll()
      Flag to try all credentials before policy is satisfied.