public class PrincipalAttributeMultiFactorAuthenticationRequestResolver extends Object implements MultiFactorAuthenticationRequestResolver
MultiFactorAuthenticationRequestResolver that resolves
potential mfa request based on the configured principal attribute.
Note: It is assumed that the attribute value that specifies the
authentication method at this time is a single-valued attribute.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MFA_METHOD_ATTRIBUTE_NAME
Default principal attribute name for retrieving requested mfa authentication method.
|
protected org.slf4j.Logger |
logger
The logger.
|
| Constructor and Description |
|---|
PrincipalAttributeMultiFactorAuthenticationRequestResolver(MultiFactorWebApplicationServiceFactory mfaServiceFactory,
AuthenticationMethodConfigurationProvider authenticationMethodConfiguration)
Ctor.
|
PrincipalAttributeMultiFactorAuthenticationRequestResolver(String authenticationMethodAttributeName,
MultiFactorWebApplicationServiceFactory mfaServiceFactory,
AuthenticationMethodConfigurationProvider authenticationMethodConfiguration)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
List<MultiFactorAuthenticationRequestContext> |
resolve(org.jasig.cas.authentication.Authentication authentication,
org.jasig.cas.authentication.principal.WebApplicationService targetService)
Resolve potential
MultiFactorAuthenticationRequestContext from passed in primary
authentication instance, for a passed in target service. |
void |
setAuthenticationMethodTranslator(AuthenticationMethodTranslator authenticationMethodTranslator) |
void |
setMfaRoleProcessor(RegisteredServiceMfaRoleProcessor mfaRoleProcessor) |
protected final org.slf4j.Logger logger
public static final String DEFAULT_MFA_METHOD_ATTRIBUTE_NAME
public PrincipalAttributeMultiFactorAuthenticationRequestResolver(MultiFactorWebApplicationServiceFactory mfaServiceFactory, AuthenticationMethodConfigurationProvider authenticationMethodConfiguration)
mfaServiceFactory - mfaServiceFactoryauthenticationMethodConfiguration - the authentication method loaderpublic PrincipalAttributeMultiFactorAuthenticationRequestResolver(String authenticationMethodAttributeName, MultiFactorWebApplicationServiceFactory mfaServiceFactory, AuthenticationMethodConfigurationProvider authenticationMethodConfiguration)
authenticationMethodAttributeName - attribute name for mfamfaServiceFactory - mfaServiceFactoryauthenticationMethodConfiguration - the authentication method loaderpublic List<MultiFactorAuthenticationRequestContext> resolve(@NotNull org.jasig.cas.authentication.Authentication authentication, @NotNull org.jasig.cas.authentication.principal.WebApplicationService targetService)
MultiFactorAuthenticationRequestResolverMultiFactorAuthenticationRequestContext from passed in primary
authentication instance, for a passed in target service.resolve in interface MultiFactorAuthenticationRequestResolverauthentication - primary authentication instancetargetService - target serviceMultiFactorAuthenticationRequestContext or null if no mfa request can be resolvedpublic void setAuthenticationMethodTranslator(AuthenticationMethodTranslator authenticationMethodTranslator)
public void setMfaRoleProcessor(RegisteredServiceMfaRoleProcessor mfaRoleProcessor)
Copyright © 2013-2015 Unicon Inc.. All Rights Reserved.