public final class MultiFactorRequestContextUtils extends Object
RequestContext.| Modifier and Type | Field and Description |
|---|---|
static String |
CAS_AUTHENTICATION_ATTR_NAME
Attribute name by which the authentication context can be retrieved/placed in the flow.
|
static String |
CAS_MFA_CREDENTIALS_ATTR_NAME
Attribute name by which the MFA credentials can be retrieved/placed in the flow.
|
static String |
CAS_MFA_REQ_AUTHN_METHOD
Attribute name by which the required authentication method can be retrieved/placed in the flow.
|
static String |
CAS_TICKET_GRANTING_TICKET_ATTR_NAME
Attribute name by which the TGT can be retrieved/placed in the flow.
|
| Modifier and Type | Method and Description |
|---|---|
static org.jasig.cas.authentication.Authentication |
getAuthentication(org.springframework.webflow.execution.RequestContext context)
Gets the authentication.
|
static <T> T |
getAuthenticationExceptionInFlowScope(org.springframework.webflow.execution.RequestContext context,
Class<T> clazz)
Gets authentication exception in flow scope.
|
static MultiFactorCredentials |
getMfaCredentials(org.springframework.webflow.execution.RequestContext context)
Gets the mfa credentials.
|
static MultiFactorAuthenticationTransactionContext |
getMfaTransaction(org.springframework.webflow.execution.RequestContext context)
Fetch
MultiFactorAuthenticationTransactionContext from flow scope. |
static org.jasig.cas.authentication.principal.Principal |
getMultiFactorPrimaryPrincipal(org.springframework.webflow.execution.RequestContext context)
Gets the principal id.
|
static MultiFactorAuthenticationSupportingWebApplicationService |
getMultifactorWebApplicationService(org.springframework.webflow.execution.RequestContext context)
Get mfa service from flow scope.
|
static String |
getRequiredAuthenticationMethod(org.springframework.webflow.execution.RequestContext context)
Get required authentication method from flow scope.
|
static String |
getTicketGrantingTicketId(org.springframework.webflow.execution.RequestContext context)
Gets the ticket granting ticket id.
|
static void |
setAuthentication(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.Authentication auth)
Sets the authentication.
|
static void |
setAuthenticationExceptionInFlowScope(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.handler.AuthenticationException e)
Sets exception in flow scope.
|
static void |
setMfaCredentials(org.springframework.webflow.execution.RequestContext context,
MultiFactorCredentials credentials)
Sets the mfa credentials.
|
static void |
setMfaTransaction(org.springframework.webflow.execution.RequestContext context,
MultiFactorAuthenticationTransactionContext mfaTransaction)
Set mfa transaction into conversation scope.
|
static void |
setMultifactorWebApplicationService(org.springframework.webflow.execution.RequestContext context,
MultiFactorAuthenticationSupportingWebApplicationService svc)
Sets the multifactor web application service.
|
static void |
setRequiredAuthenticationMethod(org.springframework.webflow.execution.RequestContext context,
String requiredAuthenticationMethod)
Sets the required authentication method.
|
static void |
setTicketGrantingTicketId(org.springframework.webflow.execution.RequestContext context,
String tgtId)
Sets the ticket granting ticket id.
|
public static final String CAS_AUTHENTICATION_ATTR_NAME
public static final String CAS_TICKET_GRANTING_TICKET_ATTR_NAME
public static final String CAS_MFA_CREDENTIALS_ATTR_NAME
public static final String CAS_MFA_REQ_AUTHN_METHOD
public static MultiFactorCredentials getMfaCredentials(org.springframework.webflow.execution.RequestContext context)
context - the contextpublic static String getTicketGrantingTicketId(org.springframework.webflow.execution.RequestContext context)
context - the contextpublic static org.jasig.cas.authentication.Authentication getAuthentication(org.springframework.webflow.execution.RequestContext context)
context - the contextpublic static void setMfaCredentials(org.springframework.webflow.execution.RequestContext context,
MultiFactorCredentials credentials)
context - the contextcredentials - the credentialspublic static void setAuthentication(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.Authentication auth)
context - the contextauth - the authpublic static org.jasig.cas.authentication.principal.Principal getMultiFactorPrimaryPrincipal(org.springframework.webflow.execution.RequestContext context)
context - the contextpublic static void setTicketGrantingTicketId(org.springframework.webflow.execution.RequestContext context,
String tgtId)
context - the contexttgtId - the tgt idpublic static void setRequiredAuthenticationMethod(org.springframework.webflow.execution.RequestContext context,
String requiredAuthenticationMethod)
context - the contextrequiredAuthenticationMethod - the required authentication methodpublic static String getRequiredAuthenticationMethod(org.springframework.webflow.execution.RequestContext context)
context - the contextpublic static void setMultifactorWebApplicationService(org.springframework.webflow.execution.RequestContext context,
MultiFactorAuthenticationSupportingWebApplicationService svc)
context - the contextsvc - the svcpublic static MultiFactorAuthenticationSupportingWebApplicationService getMultifactorWebApplicationService(org.springframework.webflow.execution.RequestContext context)
context - the contextpublic static MultiFactorAuthenticationTransactionContext getMfaTransaction(org.springframework.webflow.execution.RequestContext context)
MultiFactorAuthenticationTransactionContext from flow scope.context - the contextpublic static void setMfaTransaction(org.springframework.webflow.execution.RequestContext context,
MultiFactorAuthenticationTransactionContext mfaTransaction)
context - the contextmfaTransaction - ths mfa transactionpublic static void setAuthenticationExceptionInFlowScope(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.handler.AuthenticationException e)
context - the contexte - the epublic static <T> T getAuthenticationExceptionInFlowScope(org.springframework.webflow.execution.RequestContext context,
Class<T> clazz)
T - the generic type to note the exception classcontext - the contextclazz - the clazzCopyright © 2013-2015 Unicon Inc.. All Rights Reserved.