public class RequiredHandlerAuthenticationPolicy extends java.lang.Object implements AuthenticationPolicy
Constructor and Description |
---|
RequiredHandlerAuthenticationPolicy(java.lang.String requiredHandlerName)
Instantiates a new required handler authentication policy.
|
RequiredHandlerAuthenticationPolicy(java.lang.String requiredHandlerName,
boolean tryAll)
Instantiates a new Required handler authentication policy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSatisfiedBy(Authentication authn)
Determines whether an authentication event isSatisfiedBy arbitrary security policy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrder
public RequiredHandlerAuthenticationPolicy(java.lang.String requiredHandlerName)
requiredHandlerName
- the required handler namepublic RequiredHandlerAuthenticationPolicy(java.lang.String requiredHandlerName, boolean tryAll)
requiredHandlerName
- the required handler nametryAll
- Sets the flag to try all credentials before the policy is satisfied.
This flag is disabled by default such that the policy is satisfied immediately upon the first
credential that is successfully authenticated by the required handler.public boolean isSatisfiedBy(Authentication authn)
AuthenticationPolicy
isSatisfiedBy
in interface AuthenticationPolicy
authn
- Authentication event to examine for compliance with security policy.