public class PolicyBasedAuthenticationManager extends AbstractAuthenticationManager
AuthenticationPolicy component. The authentication process is as follows:
AuthenticationPolicy is applied.
In all cases AuthenticationException is raised if security policy is not met.
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<org.apereo.cas.authentication.AuthenticationPolicy> |
authenticationPolicies
Authentication security policy.
|
authenticationEventExecutionPlan, authenticationHandlerResolver, principalResolutionFailureFatal| Constructor and Description |
|---|
PolicyBasedAuthenticationManager(org.apereo.cas.authentication.AuthenticationEventExecutionPlan authenticationEventExecutionPlan,
org.apereo.cas.authentication.AuthenticationHandlerResolver authenticationHandlerResolver,
java.util.Collection<org.apereo.cas.authentication.AuthenticationPolicy> authenticationPolicies,
boolean principalResolutionFatal)
Instantiates a new Policy based authentication manager.
|
PolicyBasedAuthenticationManager(org.apereo.cas.authentication.AuthenticationEventExecutionPlan authenticationEventExecutionPlan,
org.apereo.cas.services.ServicesManager servicesManager)
Instantiates a new Policy based authentication manager.
|
PolicyBasedAuthenticationManager(org.apereo.cas.authentication.AuthenticationEventExecutionPlan authenticationEventExecutionPlan,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.AuthenticationPolicy authenticationPolicy) |
PolicyBasedAuthenticationManager(org.apereo.cas.authentication.AuthenticationEventExecutionPlan authenticationEventExecutionPlan,
org.apereo.cas.services.ServicesManager servicesManager,
java.util.Collection<org.apereo.cas.authentication.AuthenticationPolicy> authenticationPolicy)
Instantiates a new Policy based authentication manager.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apereo.cas.authentication.AuthenticationBuilder |
authenticateInternal(org.apereo.cas.authentication.AuthenticationTransaction transaction)
Follows the same contract as
AuthenticationManager.authenticate(AuthenticationTransaction). |
protected void |
evaluateProducedAuthenticationContext(org.apereo.cas.authentication.AuthenticationBuilder builder,
org.apereo.cas.authentication.AuthenticationTransaction transaction)
Evaluate produced authentication context.
|
addAuthenticationMethodAttribute, authenticate, authenticateAndResolvePrincipal, getAuthenticationHandlersForThisTransaction, getAuthenticationMetadataPopulatorsForTransaction, getPrincipalResolverLinkedToHandlerIfAny, populateAuthenticationMetadataAttributes, publishEvent, resolvePrincipalprotected final java.util.Collection<org.apereo.cas.authentication.AuthenticationPolicy> authenticationPolicies
public PolicyBasedAuthenticationManager(org.apereo.cas.authentication.AuthenticationEventExecutionPlan authenticationEventExecutionPlan,
org.apereo.cas.authentication.AuthenticationHandlerResolver authenticationHandlerResolver,
java.util.Collection<org.apereo.cas.authentication.AuthenticationPolicy> authenticationPolicies,
boolean principalResolutionFatal)
authenticationEventExecutionPlan - the execution planauthenticationHandlerResolver - the authentication handler resolverauthenticationPolicies - the authentication policyprincipalResolutionFatal - the principal resolution fatalpublic PolicyBasedAuthenticationManager(org.apereo.cas.authentication.AuthenticationEventExecutionPlan authenticationEventExecutionPlan,
org.apereo.cas.services.ServicesManager servicesManager)
authenticationEventExecutionPlan - the authentication event execution planservicesManager - the services managerpublic PolicyBasedAuthenticationManager(org.apereo.cas.authentication.AuthenticationEventExecutionPlan authenticationEventExecutionPlan,
org.apereo.cas.services.ServicesManager servicesManager,
java.util.Collection<org.apereo.cas.authentication.AuthenticationPolicy> authenticationPolicy)
authenticationEventExecutionPlan - the authentication event execution planservicesManager - the services managerauthenticationPolicy - the authentication policypublic PolicyBasedAuthenticationManager(org.apereo.cas.authentication.AuthenticationEventExecutionPlan authenticationEventExecutionPlan,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.AuthenticationPolicy authenticationPolicy)
protected org.apereo.cas.authentication.AuthenticationBuilder authenticateInternal(org.apereo.cas.authentication.AuthenticationTransaction transaction)
throws org.apereo.cas.authentication.AuthenticationException
AbstractAuthenticationManagerAuthenticationManager.authenticate(AuthenticationTransaction).authenticateInternal in class AbstractAuthenticationManagertransaction - the authentication transactionAuthenticationException - When one or more credentials failed authentication such that security policy was not satisfied.protected void evaluateProducedAuthenticationContext(org.apereo.cas.authentication.AuthenticationBuilder builder,
org.apereo.cas.authentication.AuthenticationTransaction transaction)
throws org.apereo.cas.authentication.AuthenticationException
builder - the buildertransaction - the transactionAuthenticationException - the authentication exception