Class NotPreventedAuthenticationPolicy
java.lang.Object
org.apereo.cas.authentication.policy.BaseAuthenticationPolicy
org.apereo.cas.authentication.policy.AtLeastOneCredentialValidatedAuthenticationPolicy
org.apereo.cas.authentication.policy.NotPreventedAuthenticationPolicy
- All Implemented Interfaces:
Serializable,org.apereo.cas.authentication.AuthenticationPolicy,org.apereo.cas.util.NamedObject,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:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()org.apereo.cas.authentication.AuthenticationPolicyExecutionResultisSatisfiedBy(org.apereo.cas.authentication.Authentication authentication, Set<org.apereo.cas.authentication.AuthenticationHandler> authenticationHandlers, org.springframework.context.ConfigurableApplicationContext applicationContext, Map<String, ? extends Serializable> context) Methods inherited from class org.apereo.cas.authentication.policy.AtLeastOneCredentialValidatedAuthenticationPolicy
isTryAllMethods inherited from class org.apereo.cas.authentication.policy.BaseAuthenticationPolicy
getName, getOrder, setName, setOrderMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.authentication.AuthenticationPolicy
isSatisfiedBy, isSatisfiedBy, isSatisfiedBy, shouldResumeOnFailure
-
Constructor Details
-
NotPreventedAuthenticationPolicy
public NotPreventedAuthenticationPolicy()
-
-
Method Details
-
isSatisfiedBy
public org.apereo.cas.authentication.AuthenticationPolicyExecutionResult isSatisfiedBy(org.apereo.cas.authentication.Authentication authentication, Set<org.apereo.cas.authentication.AuthenticationHandler> authenticationHandlers, org.springframework.context.ConfigurableApplicationContext applicationContext, Map<String, ? extends Serializable> context) throws Exception- Specified by:
isSatisfiedByin interfaceorg.apereo.cas.authentication.AuthenticationPolicy- Overrides:
isSatisfiedByin classAtLeastOneCredentialValidatedAuthenticationPolicy- Throws:
Exception
-
equals
- Overrides:
equalsin classAtLeastOneCredentialValidatedAuthenticationPolicy
-
hashCode
public int hashCode()- Overrides:
hashCodein classAtLeastOneCredentialValidatedAuthenticationPolicy
-