Class AtLeastOneCredentialValidatedAuthenticationPolicy
java.lang.Object
org.apereo.cas.authentication.policy.BaseAuthenticationPolicy
org.apereo.cas.authentication.policy.AtLeastOneCredentialValidatedAuthenticationPolicy
- All Implemented Interfaces:
Serializable,org.apereo.cas.authentication.AuthenticationPolicy,org.apereo.cas.util.NamedObject,org.springframework.core.Ordered
- Direct Known Subclasses:
NotPreventedAuthenticationPolicy
Authentication policy that is satisfied by at least one successfully authenticated credential.
- Since:
- 4.0.0
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionAtLeastOneCredentialValidatedAuthenticationPolicy(boolean tryAll) Creates a newAtLeastOneCredentialValidatedAuthenticationPolicyinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()org.apereo.cas.authentication.AuthenticationPolicyExecutionResultisSatisfiedBy(org.apereo.cas.authentication.Authentication authn, Set<org.apereo.cas.authentication.AuthenticationHandler> authenticationHandlers, org.springframework.context.ConfigurableApplicationContext applicationContext, Map<String, ? extends Serializable> context) booleanisTryAll()Flag to try all credentials before policy is satisfied.Methods 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
-
AtLeastOneCredentialValidatedAuthenticationPolicy
public AtLeastOneCredentialValidatedAuthenticationPolicy() -
AtLeastOneCredentialValidatedAuthenticationPolicy
public AtLeastOneCredentialValidatedAuthenticationPolicy(boolean tryAll) Creates a newAtLeastOneCredentialValidatedAuthenticationPolicyinstance.- Parameters:
tryAll- Flag to try all credentials before policy is satisfied. Defaults tofalse.
-
-
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) throws Exception- Throws:
Exception
-
equals
- Overrides:
equalsin classBaseAuthenticationPolicy
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseAuthenticationPolicy
-
isTryAll
public boolean isTryAll()Flag to try all credentials before policy is satisfied. Defaults tofalse.
-