Package org.apereo.cas.web.support
Class WebUtils
- java.lang.Object
-
- org.apereo.cas.web.support.WebUtils
-
public class WebUtils extends java.lang.ObjectCommon utilities for the web tier.- Since:
- 3.1
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAMETER_TICKET_GRANTING_TICKET_IDTicket-granting ticket id parameter used in various flow scopes.static java.lang.StringPUBLIC_WORKSTATION_ATTRIBUTEFlow attribute or request parameter indicating public workstation.static java.lang.StringREQUEST_SURROGATE_ACCOUNT_ATTRIBUTEFlow attribute to indicate surrogate authn is requested..
-
Constructor Summary
Constructors Constructor Description WebUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidaddErrorMessageToContext(org.springframework.binding.message.MessageContext messageContext, java.lang.String code, java.lang.String defaultText, java.lang.Object[] args)Add error message to context.static voidaddErrorMessageToContext(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code)Add error message to context.static voidaddErrorMessageToContext(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code, java.lang.String defaultText)Add error message to context.static voidaddErrorMessageToContext(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code, java.lang.String defaultText, java.lang.Object[] args)Add error message to context.static voidaddInfoMessageToContext(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code)Add info message to context.static booleancontainsGraphicalUserAuthenticationImage(org.springframework.webflow.execution.RequestContext requestContext)Contains graphical user authentication image boolean.static booleancontainsGraphicalUserAuthenticationUsername(org.springframework.webflow.execution.RequestContext requestContext)Contains graphical user authentication username.static voidcreateCredential(org.springframework.webflow.execution.RequestContext requestContext)Create credential.static <T> TgetAcceptableUsagePolicyTermsFromFlowScope(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)Gets acceptable usage policy terms from flow scope.static org.apereo.cas.authentication.AuthenticationgetAuthentication(org.springframework.webflow.execution.RequestContext ctx)Gets authentication from conversation scope.static org.apereo.cas.authentication.AuthenticationResultgetAuthenticationResult(org.springframework.webflow.execution.RequestContext ctx)Gets authentication result builder.static org.apereo.cas.authentication.AuthenticationResultBuildergetAuthenticationResultBuilder(org.springframework.webflow.execution.RequestContext ctx)Gets authentication result builder.java.util.List<org.apereo.cas.services.RegisteredService>getAuthorizedServices(org.springframework.webflow.execution.RequestContext requestContext)Gets authorized services.static java.util.Collection<java.lang.String>getAvailableAuthenticationHandleNames(org.springframework.webflow.execution.RequestContext context)Gets available authentication handle names.static org.apereo.cas.authentication.CredentialgetCredential(org.springframework.webflow.execution.RequestContext context)Gets credential from the context.static <T extends org.apereo.cas.authentication.Credential>
TgetCredential(org.springframework.webflow.execution.RequestContext context, @NonNull java.lang.Class<T> clazz)Gets credential.static java.lang.StringgetDelegatedAuthenticationClientName(org.springframework.webflow.execution.RequestContext requestContext)Gets delegated authentication client name.static java.util.Set<? extends java.io.Serializable>getDelegatedAuthenticationProviderConfigurations(org.springframework.webflow.execution.RequestContext context)Gets delegated authentication provider configurations.static java.lang.ObjectgetDelegatedAuthenticationProviderPrimary(org.springframework.webflow.execution.RequestContext context)Gets delegated authentication provider primary.static <T> TgetDelegatedClientAuthenticationCandidateProfile(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Gets delegated client authentication candidate profile.static <T extends java.io.Serializable>
java.util.List<T>getDelegatedClientAuthenticationResolvedCredentials(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Gets delegated client authentication resolved credentials.static java.lang.StringgetHttpRequestFullUrl(javax.servlet.http.HttpServletRequest request)Gets http request full url.static java.lang.StringgetHttpRequestFullUrl(org.springframework.webflow.execution.RequestContext requestContext)Gets http request full url.static javax.servlet.http.HttpServletRequestgetHttpServletRequestFromExternalWebflowContext()Gets the http servlet request from the current servlet context.static javax.servlet.http.HttpServletRequestgetHttpServletRequestFromExternalWebflowContext(org.springframework.webflow.execution.RequestContext context)Gets the http servlet request from the context.static org.apereo.cas.authentication.adaptive.geo.GeoLocationRequestgetHttpServletRequestGeoLocation(javax.servlet.http.HttpServletRequest servletRequest)Gets http servlet request geo location.static org.apereo.cas.authentication.adaptive.geo.GeoLocationRequestgetHttpServletRequestGeoLocationFromRequestContext()Gets http servlet request geo location.static org.apereo.cas.authentication.adaptive.geo.GeoLocationRequestgetHttpServletRequestGeoLocationFromRequestContext(org.springframework.webflow.execution.RequestContext context)Gets http servlet request geo location.static java.lang.StringgetHttpServletRequestUserAgentFromRequestContext()Gets http servlet request user agent.static java.lang.StringgetHttpServletRequestUserAgentFromRequestContext(javax.servlet.http.HttpServletRequest request)Gets http servlet request user agent from request context.static java.lang.StringgetHttpServletRequestUserAgentFromRequestContext(org.springframework.webflow.execution.RequestContext context)Gets http servlet request user agent from request context.static javax.servlet.http.HttpServletResponsegetHttpServletResponseFromExternalWebflowContext()Gets the http servlet response from the current servlet context.static javax.servlet.http.HttpServletResponsegetHttpServletResponseFromExternalWebflowContext(org.springframework.webflow.execution.RequestContext context)Gets the http servlet response from the context.static org.apereo.cas.authentication.AuthenticationgetInProgressAuthentication()Gets in progress authentication.static java.util.Map<java.lang.String,java.lang.Object>getLogoutPostData(org.springframework.webflow.execution.RequestContext requestContext)Get the logout POST data from the flow scope.static java.lang.StringgetLogoutPostUrl(org.springframework.webflow.execution.RequestContext requestContext)Get the logout POST url from the flow scope.static <T> TgetLogoutRedirectUrl(javax.servlet.http.HttpServletRequest request, java.lang.Class<T> clazz)Gets logout redirect url.static <T> TgetLogoutRedirectUrl(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Gets logout redirect url.static java.util.List<org.apereo.cas.logout.slo.SingleLogoutRequestContext>getLogoutRequests(org.springframework.webflow.execution.RequestContext context)Gets the logout requests from flow scope.static org.apereo.cas.authentication.CredentialgetMultifactorAuthenticationParentCredential(org.springframework.webflow.execution.RequestContext requestContext)Gets multifactor authentication parent credential.static java.lang.StringgetMultifactorAuthenticationProviderById(org.springframework.webflow.execution.RequestContext context)Get the mfa provider id from flow scope.java.util.ListgetMultifactorAuthenticationRegisteredDevices(org.springframework.webflow.execution.RequestContext requestContext)Gets multifactor authentication registered devices.static <T> java.util.Optional<T>getMultifactorAuthenticationTrustRecord(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Gets multifactor authentication trust record.static <T extends org.apereo.cas.authentication.OneTimeTokenAccount>
TgetOneTimeTokenAccount(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)Gets one time token account.static java.lang.StringgetOpenIdLocalUserId(org.springframework.webflow.execution.RequestContext context)Deprecated.Since 6.2.0static <T> TgetPasswordlessAuthenticationAccount(org.springframework.webflow.execution.Event event, java.lang.Class<T> clazz)Gets passwordless authentication account.static <T> TgetPasswordlessAuthenticationAccount(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)Gets passwordless authentication account.static java.lang.StringgetPasswordPolicyPattern(org.springframework.webflow.execution.RequestContext requestContext)Gets password reset password policy pattern.static org.apereo.cas.authentication.principal.PrincipalgetPrincipalFromRequestContext(org.springframework.webflow.execution.RequestContext requestContext)Gets principal from request context.static org.apereo.cas.authentication.principal.PrincipalgetPrincipalFromRequestContext(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.ticket.registry.TicketRegistrySupport ticketRegistrySupport)Gets the authenticated principal.static java.lang.StringgetRecaptchaSiteKey(org.springframework.webflow.execution.RequestContext context)Gets recaptcha site key.static org.apereo.cas.services.RegisteredServicegetRegisteredService(javax.servlet.http.HttpServletRequest request)Gets registered service.static org.apereo.cas.services.RegisteredServicegetRegisteredService(org.springframework.webflow.execution.RequestContext context)Gets the registered service from the flow scope.static java.util.Collection<org.springframework.webflow.execution.Event>getResolvedEventsAsAttribute(org.springframework.webflow.execution.RequestContext context)Gets resolved events as attribute.static java.util.Collection<java.lang.String>getResolvedMultifactorAuthenticationProviders(org.springframework.webflow.execution.RequestContext context)Gets resolved multifactor authentication providers.static java.util.List<java.lang.String>getSelectableMultifactorAuthenticationProviders(org.springframework.webflow.execution.RequestContext requestContext)Gets selectable multifactor authentication providers.static org.apereo.cas.authentication.principal.WebApplicationServicegetService(java.util.List<org.apereo.cas.web.support.ArgumentExtractor> argumentExtractors, org.springframework.webflow.execution.RequestContext context)Gets the service.static org.apereo.cas.authentication.principal.WebApplicationServicegetService(org.springframework.webflow.execution.RequestContext context)Gets the service from the flow scope.static java.lang.StringgetServiceRedirectUrl(org.springframework.webflow.execution.RequestContext requestContext)Gets service redirect url.static java.lang.StringgetServiceTicketFromRequestScope(org.springframework.webflow.execution.RequestContext context)Gets the service ticket from request scope.static <T> TgetServiceUserInterfaceMetadata(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clz)Gets service user interface metadata.static <T extends org.apereo.cas.ticket.Ticket>
TgetSimpleMultifactorAuthenticationToken(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)Gets simple multifactor authentication token.static java.lang.StringgetSingleLogoutRequest(javax.servlet.http.HttpServletRequest request)Gets single logout request.static java.util.List<? extends java.io.Serializable>getSingleSignOnSessions(org.springframework.webflow.execution.RequestContext requestContext)Gets single sign on sessions.static java.util.List<java.lang.String>getSurrogateAuthenticationAccounts(org.springframework.webflow.execution.RequestContext requestContext)Gets surrogate authentication accounts.static org.apereo.cas.ticket.TicketGrantingTicketgetTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context)Get ticket granting ticket.static java.lang.StringgetTicketGrantingTicketId(org.springframework.webflow.execution.RequestContext context)Gets the ticket granting ticket id from the request and flow scopes.static java.lang.StringgetTicketGrantingTicketIdFrom(org.springframework.webflow.core.collection.MutableAttributeMap scopeMap)Gets ticket granting ticket id from.static java.net.URIgetUnauthorizedRedirectUrlFromFlowScope(org.springframework.webflow.execution.RequestContext context)Gets unauthorized redirect url into flow scope.static booleangetWarningCookie(org.springframework.webflow.execution.RequestContext context)Gets warning cookie.static <T extends java.io.Serializable>
java.util.List<T>getWsFederationDelegatedClients(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Get ws federation delegated clients as list.static booleanhasDelegatedClientAuthenticationCandidateProfile(org.springframework.webflow.execution.RequestContext context)Has delegated client authentication candidate profile?static booleanhasPasswordlessAuthenticationAccount(org.springframework.webflow.execution.RequestContext requestContext)Has passwordless authentication account.static booleanhasSurrogateAuthenticationRequest(org.springframework.webflow.execution.RequestContext requestContext)Has request surrogate authentication request.static booleanisAuthenticatingAtPublicWorkstation(org.springframework.webflow.execution.RequestContext ctx)Is authenticating at a public workstation?static booleanisCasLoginFormSetToViewable(org.springframework.webflow.execution.RequestContext context)Has login form been set to viewable explicitly.static booleanisCasLoginFormViewable(org.springframework.webflow.execution.RequestContext context)Is cas login form viewable.static java.lang.BooleanisDelegatedAuthenticationDynamicProviderSelection(org.springframework.webflow.execution.RequestContext context)Put delegated authentication dynamic provider selection.static java.lang.BooleanisExistingSingleSignOnSessionAvailable(org.springframework.webflow.test.MockRequestContext context)Is existing single sign on session available boolean.static java.lang.BooleanisGeoLocationTrackingIntoFlowScope(org.springframework.webflow.execution.RequestContext context)Gets geo location tracking into flow scope.static java.lang.BooleanisGoogleAuthenticatorMultipleDeviceRegistrationEnabled(org.springframework.webflow.execution.RequestContext requestContext)Is google authenticator multiple device registration enabled?static booleanisGraphicalUserAuthenticationEnabled(org.springframework.webflow.execution.RequestContext requestContext)Put graphical user authentication enabled.static booleanisInterruptAuthenticationFlowFinalized(org.springframework.webflow.execution.RequestContext requestContext)Is interrupt authentication flow finalized.static booleanisPasswordManagementEnabled(org.springframework.webflow.execution.RequestContext context)Is password management enabled.static java.lang.BooleanisRecaptchaForgotUsernameEnabled(org.springframework.webflow.execution.RequestContext requestContext)Is recaptcha forgot username enabled.static java.lang.BooleanisRecaptchaPasswordManagementEnabled(org.springframework.webflow.execution.RequestContext requestContext)Is recaptcha forgot username enabled.static java.lang.BooleanisRememberMeAuthenticationEnabled(org.springframework.webflow.execution.RequestContext context)Is remember me authentication enabled ?.static org.springframework.web.servlet.ModelAndViewproduceErrorView(java.lang.String view, java.lang.Throwable e)Produce error view model and view.static org.springframework.web.servlet.ModelAndViewproduceErrorView(java.lang.Throwable e)Produce error view model and view.static voidproduceErrorView(javax.servlet.http.HttpServletRequest request, org.springframework.http.HttpStatus badRequest, java.lang.String message)Produce error view.static org.springframework.web.servlet.ModelAndViewproduceUnauthorizedErrorView(java.lang.Exception ex)Produce unauthorized error view model and view.static voidputAcceptableUsagePolicyStatusIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.lang.Object status)Put acceptable usage policy status into flow scope.static voidputAcceptableUsagePolicyTermsIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.lang.Object terms)Put acceptable usage policy terms into flow scope.static voidputAccountProfileManagementEnabled(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)Put account profile management enabled.static voidputAuthentication(org.apereo.cas.authentication.Authentication authentication, org.springframework.webflow.execution.RequestContext ctx)Put authentication into conversation scope.static voidputAuthenticationResult(org.apereo.cas.authentication.AuthenticationResult authenticationResult, org.springframework.webflow.execution.RequestContext context)Put authentication result.static voidputAuthenticationResultBuilder(org.apereo.cas.authentication.AuthenticationResultBuilder builder, org.springframework.webflow.execution.RequestContext ctx)Put authentication result builder.static voidputAuthorizedServices(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<org.apereo.cas.services.RegisteredService> authorizedServices)Put authorized services.static voidputAvailableAuthenticationHandleNames(org.springframework.webflow.execution.RequestContext context, java.util.Collection<java.lang.String> availableHandlers)Put available authentication handle names.static voidputCasLoginFormViewable(org.springframework.webflow.execution.RequestContext context, boolean viewable)Put cas login form viewable.static voidputCredential(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.Credential credential)Puts credential into the context.static voidputCredentialIntoScope(org.springframework.webflow.core.collection.MutableAttributeMap<java.lang.Object> scope, org.apereo.cas.authentication.Credential credential)Put credential into scope.static voidputCustomLoginFormFields(org.springframework.webflow.execution.RequestContext context, java.util.Map customLoginFormFields)Put custom login form fields.static voidputDelegatedAuthenticationClientName(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String clientName)Put delegated authentication client name.static voidputDelegatedAuthenticationDisabled(org.springframework.webflow.execution.RequestContext requestContext, boolean disabled)Put delegated authentication.static voidputDelegatedAuthenticationDynamicProviderSelection(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean result)Put delegated authentication dynamic provider selection.static voidputDelegatedAuthenticationProviderConfigurations(org.springframework.webflow.execution.RequestContext context, java.util.Set<? extends java.io.Serializable> urls)Put delegated authentication provider configurations.static voidputDelegatedAuthenticationProviderPrimary(org.springframework.webflow.execution.RequestContext context, java.lang.Object client)Put delegated authentication provider dominant.static voidputDelegatedClientAuthenticationCandidateProfile(org.springframework.webflow.execution.RequestContext context, java.io.Serializable profile)Put delegated client authentication candidate profile.static voidputDelegatedClientAuthenticationResolvedCredentials(org.springframework.webflow.execution.RequestContext context, java.util.List<? extends java.io.Serializable> candidateMatches)Put delegated client authentication resolved credentials.static voidputExistingSingleSignOnSessionAvailable(org.springframework.webflow.execution.RequestContext context, boolean value)Put existing single sign on session available.static voidputExistingSingleSignOnSessionPrincipal(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.principal.Principal value)Put existing single sign on session principal.static voidputGeoLocationTrackingIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.lang.Object value)Put geo location tracking into flow scope.static voidputGoogleAuthenticatorMultipleDeviceRegistrationEnabled(org.springframework.webflow.execution.RequestContext requestContext, boolean enabled)Put google authenticator multiple device registration enabled.static voidputGraphicalUserAuthenticationEnabled(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Boolean value)Put graphical user authentication enabled.static voidputGraphicalUserAuthenticationImage(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String image)Put graphical user authentication image.static voidputGraphicalUserAuthenticationUsername(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String username)Put graphical user authentication username.static voidputInitialHttpRequestPostParameters(org.springframework.webflow.execution.RequestContext context)Put initial http request post parameters.static voidputInterruptAuthenticationFlowFinalized(org.springframework.webflow.execution.RequestContext requestContext)Put interrupt authentication flow finalized.static voidputLogoutPostData(org.springframework.webflow.execution.RequestContext requestContext, java.util.Map<java.lang.String,java.lang.Object> postData)Put the logout POST data in the flow scope.static voidputLogoutPostUrl(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String postUrl)Put the logout POST url in the flow scope.static voidputLogoutRedirectUrl(javax.servlet.http.HttpServletRequest request, java.lang.String service)Put logout redirect url.static voidputLogoutRedirectUrl(org.springframework.webflow.execution.RequestContext context, java.lang.String service)Put logout redirect url.static voidputLogoutRequests(org.springframework.webflow.execution.RequestContext context, java.util.List<org.apereo.cas.logout.slo.SingleLogoutRequestContext> requests)Put logout requests into flow scope.static voidputLogoutUrls(org.springframework.webflow.execution.RequestContext context, java.util.Map urls)Put logout urls into flow scope.static voidputMultifactorAuthenticationProviderIdIntoFlowScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider)Add the mfa provider id into flow scope.static voidputMultifactorAuthenticationRegisteredDevices(org.springframework.webflow.execution.RequestContext requestContext, java.util.List accounts)Put multifactor authentication registered devices.static voidputMultifactorAuthenticationTrustRecord(org.springframework.webflow.execution.RequestContext context, java.io.Serializable object)Put multifactor authentication trust record.static voidputOneTimeTokenAccount(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.OneTimeTokenAccount account)Put one time token account.static voidputOneTimeTokenAccounts(org.springframework.webflow.execution.RequestContext requestContext, java.util.Collection accounts)Put one time token accounts.static voidputOpenIdLocalUserId(org.springframework.webflow.execution.RequestContext context, java.lang.String user)Put open id local user id.static voidputPasswordlessAuthenticationAccount(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Object account)Put passwordless authentication account.static voidputPasswordlessAuthenticationEnabled(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Boolean value)Put passwordless authentication enabled.static voidputPasswordManagementEnabled(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)Put password management enabled flow scope.static voidputPasswordPolicyPattern(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String policyPattern)Put password reset password policy pattern string.static voidputPrincipal(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.Principal authenticationPrincipal)Put principal.static voidputPublicWorkstationToFlowIfRequestParameterPresent(org.springframework.webflow.execution.RequestContext context)Put public workstation into the flow if request parameter present.static voidputRecaptchaForgotUsernameEnabled(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties properties)Put recaptcha forgot username enabled.static voidputRecaptchaPasswordManagementEnabled(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties recaptcha)Put recaptcha password management enabled.static voidputRecaptchaPropertiesFlowScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties googleRecaptcha)Put recaptcha settings flow scope.static voidputRegisteredService(javax.servlet.http.HttpServletRequest request, org.apereo.cas.services.RegisteredService registeredService)Put registered service.static voidputRegisteredService(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.services.RegisteredService registeredService)Put registered service into flowscope.static voidputRememberMeAuthenticationEnabled(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean enabled)Put remember me authentication enabled.static voidputResolvedEventsAsAttribute(org.springframework.webflow.execution.RequestContext context, java.util.Collection<org.springframework.webflow.execution.Event> resolvedEvents)Put resolved events as attribute.static voidputResolvedMultifactorAuthenticationProviders(org.springframework.webflow.execution.RequestContext context, java.util.Collection<org.apereo.cas.authentication.MultifactorAuthenticationProvider> value)Put resolved multifactor authentication providers into scope.static voidputSecurityQuestionsEnabled(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)Put security questions enabled into flow scope.static voidputSelectableMultifactorAuthenticationProviders(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<java.lang.String> mfaProviders)Put selectable multifactor authentication providers.static voidputServiceIntoFlashScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.principal.Service service)Put service into flashscope.static voidputServiceIntoFlowScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.principal.Service service)Put service into flowscope.static voidputServiceOriginalUrlIntoRequestScope(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.WebApplicationService service)Put service original url into request scope.static voidputServiceRedirectUrl(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String url)Put service response into request scope.static voidputServiceResponseIntoRequestScope(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.Response response)Put service response into request scope.static voidputServiceTicketInRequestScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.ticket.ServiceTicket ticketValue)Put service ticket in request scope.static voidputServiceUserInterfaceMetadata(org.springframework.webflow.execution.RequestContext requestContext, java.io.Serializable mdui)Sets service user interface metadata.static voidputSimpleMultifactorAuthenticationToken(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.ticket.Ticket token)Put simple multifactor authentication token.static voidputSingleLogoutRequest(javax.servlet.http.HttpServletRequest request, java.lang.String logoutRequest)Put single logout request.static voidputSingleSignOnSessions(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<? extends java.io.Serializable> sessions)Put single sign on sessions.static voidputStaticAuthenticationIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.lang.Object value)Put static authentication into flow scope.static voidputSurrogateAuthenticationAccounts(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<java.lang.String> surrogates)Put surrogate authentication accounts.static voidputSurrogateAuthenticationRequest(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)Put request surrogate authentication.static voidputTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.ticket.TicketGrantingTicket ticket)Put ticket granting ticket.static voidputTicketGrantingTicketInScopes(org.springframework.webflow.execution.RequestContext context, java.lang.String ticketValue)Put ticket granting ticket in request and flow scopes.static voidputTicketGrantingTicketInScopes(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.ticket.TicketGrantingTicket ticket)Put ticket granting ticket in request and flow scopes.static voidputTicketGrantingTicketIntoMap(org.springframework.webflow.core.collection.MutableAttributeMap<java.lang.Object> map, java.lang.String ticketValue)Put ticket granting ticket into map that is either backed by the flow/request scope.static voidputUnauthorizedRedirectUrlIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.net.URI url)Adds the unauthorized redirect url to the flow scope.static voidputWarnCookieIfRequestParameterPresent(org.apereo.cas.web.cookie.CasCookieBuilder warnCookieGenerator, org.springframework.webflow.execution.RequestContext context)Put warn cookie if request parameter present.static voidputWarningCookie(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean cookieValue)Put warning cookie value into flowscope.static voidputWsFederationDelegatedClients(org.springframework.webflow.execution.RequestContext context, java.util.List<? extends java.io.Serializable> clients)Put ws federation delegated clients.static voidputYubiKeyMultipleDeviceRegistrationEnabled(org.springframework.webflow.execution.RequestContext requestContext, boolean enabled)Put yubikey multiple device registration enabled.static voidremoveCredential(org.springframework.webflow.execution.RequestContext context)Remove credential.static voidremoveInterruptAuthenticationFlowFinalized(org.springframework.webflow.execution.RequestContext requestContext)Remove interrupt authentication flow finalized.static voidremoveLogoutRedirectUrl(org.springframework.webflow.execution.RequestContext context)Remove logout redirect url.static voidremoveSimpleMultifactorAuthenticationToken(org.springframework.webflow.execution.RequestContext requestContext)Remove simple multifactor authentication token.static voidremoveSurrogateAuthenticationRequest(org.springframework.webflow.execution.RequestContext requestContext)Has request surrogate authentication request.static org.apereo.cas.services.RegisteredServiceresolveRegisteredService(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.AuthenticationServiceSelectionPlan serviceSelectionStrategy)Resolve registered service.
-
-
-
Field Detail
-
PUBLIC_WORKSTATION_ATTRIBUTE
public static final java.lang.String PUBLIC_WORKSTATION_ATTRIBUTE
Flow attribute or request parameter indicating public workstation.- See Also:
- Constant Field Values
-
REQUEST_SURROGATE_ACCOUNT_ATTRIBUTE
public static final java.lang.String REQUEST_SURROGATE_ACCOUNT_ATTRIBUTE
Flow attribute to indicate surrogate authn is requested..- See Also:
- Constant Field Values
-
PARAMETER_TICKET_GRANTING_TICKET_ID
public static final java.lang.String PARAMETER_TICKET_GRANTING_TICKET_ID
Ticket-granting ticket id parameter used in various flow scopes.- See Also:
- Constant Field Values
-
-
Method Detail
-
getResolvedEventsAsAttribute
public static java.util.Collection<org.springframework.webflow.execution.Event> getResolvedEventsAsAttribute(org.springframework.webflow.execution.RequestContext context)
Gets resolved events as attribute.- Parameters:
context- the context- Returns:
- the resolved events as attribute
-
putResolvedEventsAsAttribute
public static void putResolvedEventsAsAttribute(org.springframework.webflow.execution.RequestContext context, java.util.Collection<org.springframework.webflow.execution.Event> resolvedEvents)Put resolved events as attribute.- Parameters:
context- the contextresolvedEvents- the resolved events
-
getHttpServletRequestFromExternalWebflowContext
public static javax.servlet.http.HttpServletRequest getHttpServletRequestFromExternalWebflowContext(org.springframework.webflow.execution.RequestContext context)
Gets the http servlet request from the context.- Parameters:
context- the context- Returns:
- the http servlet request
-
getHttpServletRequestFromExternalWebflowContext
public static javax.servlet.http.HttpServletRequest getHttpServletRequestFromExternalWebflowContext()
Gets the http servlet request from the current servlet context.- Returns:
- the http servlet request
-
getHttpServletResponseFromExternalWebflowContext
public static javax.servlet.http.HttpServletResponse getHttpServletResponseFromExternalWebflowContext(org.springframework.webflow.execution.RequestContext context)
Gets the http servlet response from the context.- Parameters:
context- the context- Returns:
- the http servlet response
-
getHttpServletResponseFromExternalWebflowContext
public static javax.servlet.http.HttpServletResponse getHttpServletResponseFromExternalWebflowContext()
Gets the http servlet response from the current servlet context.- Returns:
- the http servlet response
-
getService
public static org.apereo.cas.authentication.principal.WebApplicationService getService(java.util.List<org.apereo.cas.web.support.ArgumentExtractor> argumentExtractors, org.springframework.webflow.execution.RequestContext context)Gets the service.- Parameters:
argumentExtractors- the argument extractorscontext- the context- Returns:
- the service
-
getService
public static org.apereo.cas.authentication.principal.WebApplicationService getService(org.springframework.webflow.execution.RequestContext context)
Gets the service from the flow scope.- Parameters:
context- the context- Returns:
- the service
-
getRegisteredService
public static org.apereo.cas.services.RegisteredService getRegisteredService(org.springframework.webflow.execution.RequestContext context)
Gets the registered service from the flow scope.- Parameters:
context- the context- Returns:
- the service
-
getRegisteredService
public static org.apereo.cas.services.RegisteredService getRegisteredService(javax.servlet.http.HttpServletRequest request)
Gets registered service.- Parameters:
request- the request- Returns:
- the registered service
-
putTicketGrantingTicket
public static void putTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.ticket.TicketGrantingTicket ticket)Put ticket granting ticket.- Parameters:
context- the contextticket- the ticket value
-
getTicketGrantingTicket
public static org.apereo.cas.ticket.TicketGrantingTicket getTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context)
Get ticket granting ticket.- Parameters:
context- the context- Returns:
- the ticket granting ticket
-
putTicketGrantingTicketInScopes
public static void putTicketGrantingTicketInScopes(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.ticket.TicketGrantingTicket ticket)Put ticket granting ticket in request and flow scopes.- Parameters:
context- the contextticket- the ticket value
-
putTicketGrantingTicketInScopes
public static void putTicketGrantingTicketInScopes(org.springframework.webflow.execution.RequestContext context, java.lang.String ticketValue)Put ticket granting ticket in request and flow scopes.- Parameters:
context- the contextticketValue- the ticket value
-
putTicketGrantingTicketIntoMap
public static void putTicketGrantingTicketIntoMap(org.springframework.webflow.core.collection.MutableAttributeMap<java.lang.Object> map, java.lang.String ticketValue)Put ticket granting ticket into map that is either backed by the flow/request scope. Will override the previous value and blank out the setting if value is null or empty.- Parameters:
map- the mapticketValue- the ticket value
-
getTicketGrantingTicketId
public static java.lang.String getTicketGrantingTicketId(org.springframework.webflow.execution.RequestContext context)
Gets the ticket granting ticket id from the request and flow scopes.- Parameters:
context- the context- Returns:
- the ticket granting ticket id
-
getTicketGrantingTicketIdFrom
public static java.lang.String getTicketGrantingTicketIdFrom(org.springframework.webflow.core.collection.MutableAttributeMap scopeMap)
Gets ticket granting ticket id from.- Parameters:
scopeMap- the scope map- Returns:
- the ticket granting ticket id from
-
putServiceTicketInRequestScope
public static void putServiceTicketInRequestScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.ticket.ServiceTicket ticketValue)Put service ticket in request scope.- Parameters:
context- the contextticketValue- the ticket value
-
getServiceTicketFromRequestScope
public static java.lang.String getServiceTicketFromRequestScope(org.springframework.webflow.execution.RequestContext context)
Gets the service ticket from request scope.- Parameters:
context- the context- Returns:
- the service ticket from request scope
-
putUnauthorizedRedirectUrlIntoFlowScope
public static void putUnauthorizedRedirectUrlIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.net.URI url)Adds the unauthorized redirect url to the flow scope.- Parameters:
context- the request contexturl- the uri to redirect the flow
-
getUnauthorizedRedirectUrlFromFlowScope
public static java.net.URI getUnauthorizedRedirectUrlFromFlowScope(org.springframework.webflow.execution.RequestContext context)
Gets unauthorized redirect url into flow scope.- Parameters:
context- the context- Returns:
- the unauthorized redirect url into flow scope
-
putLogoutRequests
public static void putLogoutRequests(org.springframework.webflow.execution.RequestContext context, java.util.List<org.apereo.cas.logout.slo.SingleLogoutRequestContext> requests)Put logout requests into flow scope.- Parameters:
context- the contextrequests- the requests
-
putLogoutUrls
public static void putLogoutUrls(org.springframework.webflow.execution.RequestContext context, java.util.Map urls)Put logout urls into flow scope.- Parameters:
context- the contexturls- the requests
-
getLogoutRequests
public static java.util.List<org.apereo.cas.logout.slo.SingleLogoutRequestContext> getLogoutRequests(org.springframework.webflow.execution.RequestContext context)
Gets the logout requests from flow scope.- Parameters:
context- the context- Returns:
- the logout requests
-
putServiceIntoFlowScope
public static void putServiceIntoFlowScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.principal.Service service)Put service into flowscope.- Parameters:
context- the contextservice- the service
-
putServiceIntoFlashScope
public static void putServiceIntoFlashScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.principal.Service service)Put service into flashscope.- Parameters:
context- the contextservice- the service
-
putWarningCookie
public static void putWarningCookie(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean cookieValue)Put warning cookie value into flowscope.- Parameters:
context- the contextcookieValue- the cookie value
-
getWarningCookie
public static boolean getWarningCookie(org.springframework.webflow.execution.RequestContext context)
Gets warning cookie.- Parameters:
context- the context- Returns:
- warning cookie value, if present.
-
putRegisteredService
public static void putRegisteredService(javax.servlet.http.HttpServletRequest request, org.apereo.cas.services.RegisteredService registeredService)Put registered service.- Parameters:
request- the requestregisteredService- the registered service
-
putRegisteredService
public static void putRegisteredService(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.services.RegisteredService registeredService)Put registered service into flowscope.- Parameters:
context- the contextregisteredService- the service
-
getCredential
public static <T extends org.apereo.cas.authentication.Credential> T getCredential(org.springframework.webflow.execution.RequestContext context, @NonNull @NonNull java.lang.Class<T> clazz)Gets credential.- Type Parameters:
T- the type parameter- Parameters:
context- the contextclazz- the clazz- Returns:
- the credential
-
getCredential
public static org.apereo.cas.authentication.Credential getCredential(org.springframework.webflow.execution.RequestContext context)
Gets credential from the context.- Parameters:
context- the context- Returns:
- the credential, or null if it cant be found in the context or if it has no id.
-
putCredential
public static void putCredential(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.Credential credential)Puts credential into the context.- Parameters:
context- the contextcredential- the credential
-
putCredentialIntoScope
public static void putCredentialIntoScope(org.springframework.webflow.core.collection.MutableAttributeMap<java.lang.Object> scope, org.apereo.cas.authentication.Credential credential)Put credential into scope.- Parameters:
scope- the scopecredential- the credential
-
removeCredential
public static void removeCredential(org.springframework.webflow.execution.RequestContext context)
Remove credential.- Parameters:
context- the context
-
isAuthenticatingAtPublicWorkstation
public static boolean isAuthenticatingAtPublicWorkstation(org.springframework.webflow.execution.RequestContext ctx)
Is authenticating at a public workstation?- Parameters:
ctx- the ctx- Returns:
- true if the cookie value is present
-
putPublicWorkstationToFlowIfRequestParameterPresent
public static void putPublicWorkstationToFlowIfRequestParameterPresent(org.springframework.webflow.execution.RequestContext context)
Put public workstation into the flow if request parameter present.- Parameters:
context- the context
-
putWarnCookieIfRequestParameterPresent
public static void putWarnCookieIfRequestParameterPresent(org.apereo.cas.web.cookie.CasCookieBuilder warnCookieGenerator, org.springframework.webflow.execution.RequestContext context)Put warn cookie if request parameter present.- Parameters:
warnCookieGenerator- the warn cookie generatorcontext- the context
-
putAuthentication
public static void putAuthentication(org.apereo.cas.authentication.Authentication authentication, org.springframework.webflow.execution.RequestContext ctx)Put authentication into conversation scope.- Parameters:
authentication- the authenticationctx- the ctx
-
getAuthentication
public static org.apereo.cas.authentication.Authentication getAuthentication(org.springframework.webflow.execution.RequestContext ctx)
Gets authentication from conversation scope.- Parameters:
ctx- the ctx- Returns:
- the authentication
-
putAuthenticationResultBuilder
public static void putAuthenticationResultBuilder(org.apereo.cas.authentication.AuthenticationResultBuilder builder, org.springframework.webflow.execution.RequestContext ctx)Put authentication result builder.- Parameters:
builder- the builderctx- the ctx
-
getPrincipalFromRequestContext
public static org.apereo.cas.authentication.principal.Principal getPrincipalFromRequestContext(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.ticket.registry.TicketRegistrySupport ticketRegistrySupport)Gets the authenticated principal.- Parameters:
requestContext- the request contextticketRegistrySupport- the ticket registry support- Returns:
- the principal
-
getPrincipalFromRequestContext
public static org.apereo.cas.authentication.principal.Principal getPrincipalFromRequestContext(org.springframework.webflow.execution.RequestContext requestContext)
Gets principal from request context.- Parameters:
requestContext- the request context- Returns:
- the principal from request context
-
getAuthenticationResultBuilder
public static org.apereo.cas.authentication.AuthenticationResultBuilder getAuthenticationResultBuilder(org.springframework.webflow.execution.RequestContext ctx)
Gets authentication result builder.- Parameters:
ctx- the ctx- Returns:
- the authentication result builder
-
putAuthenticationResult
public static void putAuthenticationResult(org.apereo.cas.authentication.AuthenticationResult authenticationResult, org.springframework.webflow.execution.RequestContext context)Put authentication result.- Parameters:
authenticationResult- the authentication resultcontext- the context
-
getAuthenticationResult
public static org.apereo.cas.authentication.AuthenticationResult getAuthenticationResult(org.springframework.webflow.execution.RequestContext ctx)
Gets authentication result builder.- Parameters:
ctx- the ctx- Returns:
- the authentication context builder
-
getHttpServletRequestUserAgentFromRequestContext
public static java.lang.String getHttpServletRequestUserAgentFromRequestContext()
Gets http servlet request user agent.- Returns:
- the http servlet request user agent
-
getHttpServletRequestUserAgentFromRequestContext
public static java.lang.String getHttpServletRequestUserAgentFromRequestContext(org.springframework.webflow.execution.RequestContext context)
Gets http servlet request user agent from request context.- Parameters:
context- the context- Returns:
- the http servlet request user agent from request context
-
getHttpServletRequestUserAgentFromRequestContext
public static java.lang.String getHttpServletRequestUserAgentFromRequestContext(javax.servlet.http.HttpServletRequest request)
Gets http servlet request user agent from request context.- Parameters:
request- the request- Returns:
- the http servlet request user agent from request context
-
getHttpServletRequestGeoLocationFromRequestContext
public static org.apereo.cas.authentication.adaptive.geo.GeoLocationRequest getHttpServletRequestGeoLocationFromRequestContext()
Gets http servlet request geo location.- Returns:
- the http servlet request geo location
-
getHttpServletRequestGeoLocationFromRequestContext
public static org.apereo.cas.authentication.adaptive.geo.GeoLocationRequest getHttpServletRequestGeoLocationFromRequestContext(org.springframework.webflow.execution.RequestContext context)
Gets http servlet request geo location.- Parameters:
context- the context- Returns:
- the http servlet request geo location
-
getHttpServletRequestGeoLocation
public static org.apereo.cas.authentication.adaptive.geo.GeoLocationRequest getHttpServletRequestGeoLocation(javax.servlet.http.HttpServletRequest servletRequest)
Gets http servlet request geo location.- Parameters:
servletRequest- the servlet request- Returns:
- the http servlet request geo location
-
putGeoLocationTrackingIntoFlowScope
public static void putGeoLocationTrackingIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.lang.Object value)Put geo location tracking into flow scope.- Parameters:
context- the contextvalue- the value
-
isGeoLocationTrackingIntoFlowScope
public static java.lang.Boolean isGeoLocationTrackingIntoFlowScope(org.springframework.webflow.execution.RequestContext context)
Gets geo location tracking into flow scope.- Parameters:
context- the context- Returns:
- the geo location tracking into flow scope
-
putRecaptchaPropertiesFlowScope
public static void putRecaptchaPropertiesFlowScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties googleRecaptcha)Put recaptcha settings flow scope.- Parameters:
context- the contextgoogleRecaptcha- the properties
-
getRecaptchaSiteKey
public static java.lang.String getRecaptchaSiteKey(org.springframework.webflow.execution.RequestContext context)
Gets recaptcha site key.- Parameters:
context- the context- Returns:
- the recaptcha site key
-
putStaticAuthenticationIntoFlowScope
public static void putStaticAuthenticationIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.lang.Object value)Put static authentication into flow scope.- Parameters:
context- the contextvalue- the value
-
putPasswordManagementEnabled
public static void putPasswordManagementEnabled(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)Put password management enabled flow scope.- Parameters:
context- the contextvalue- the value
-
putAccountProfileManagementEnabled
public static void putAccountProfileManagementEnabled(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)Put account profile management enabled.- Parameters:
context- the contextvalue- the value
-
putSecurityQuestionsEnabled
public static void putSecurityQuestionsEnabled(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)Put security questions enabled into flow scope.- Parameters:
context- the contextvalue- the value
-
isPasswordManagementEnabled
public static boolean isPasswordManagementEnabled(org.springframework.webflow.execution.RequestContext context)
Is password management enabled.- Parameters:
context- the context- Returns:
- the boolean
-
putPrincipal
public static void putPrincipal(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.Principal authenticationPrincipal)Put principal.- Parameters:
requestContext- the request contextauthenticationPrincipal- the authentication principal
-
putLogoutRedirectUrl
public static void putLogoutRedirectUrl(org.springframework.webflow.execution.RequestContext context, java.lang.String service)Put logout redirect url.- Parameters:
context- the contextservice- the service
-
putLogoutRedirectUrl
public static void putLogoutRedirectUrl(javax.servlet.http.HttpServletRequest request, java.lang.String service)Put logout redirect url.- Parameters:
request- the contextservice- the service
-
getLogoutRedirectUrl
public static <T> T getLogoutRedirectUrl(javax.servlet.http.HttpServletRequest request, java.lang.Class<T> clazz)Gets logout redirect url.- Type Parameters:
T- the type parameter- Parameters:
request- the requestclazz- the clazz- Returns:
- the logout redirect url
-
getLogoutRedirectUrl
public static <T> T getLogoutRedirectUrl(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Gets logout redirect url.- Type Parameters:
T- the type parameter- Parameters:
context- the contextclazz- the clazz- Returns:
- the logout redirect url
-
removeLogoutRedirectUrl
public static void removeLogoutRedirectUrl(org.springframework.webflow.execution.RequestContext context)
Remove logout redirect url.- Parameters:
context- the context
-
putRememberMeAuthenticationEnabled
public static void putRememberMeAuthenticationEnabled(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean enabled)Put remember me authentication enabled.- Parameters:
context- the contextenabled- the enabled
-
isRememberMeAuthenticationEnabled
public static java.lang.Boolean isRememberMeAuthenticationEnabled(org.springframework.webflow.execution.RequestContext context)
Is remember me authentication enabled ?.- Parameters:
context- the context- Returns:
- true /false
-
getMultifactorAuthenticationTrustRecord
public static <T> java.util.Optional<T> getMultifactorAuthenticationTrustRecord(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Gets multifactor authentication trust record.- Type Parameters:
T- the type parameter- Parameters:
context- the contextclazz- the clazz- Returns:
- the multifactor authentication trust record
-
putMultifactorAuthenticationTrustRecord
public static void putMultifactorAuthenticationTrustRecord(org.springframework.webflow.execution.RequestContext context, java.io.Serializable object)Put multifactor authentication trust record.- Parameters:
context- the contextobject- the object
-
putResolvedMultifactorAuthenticationProviders
public static void putResolvedMultifactorAuthenticationProviders(org.springframework.webflow.execution.RequestContext context, java.util.Collection<org.apereo.cas.authentication.MultifactorAuthenticationProvider> value)Put resolved multifactor authentication providers into scope.- Parameters:
context- the contextvalue- the value
-
getResolvedMultifactorAuthenticationProviders
public static java.util.Collection<java.lang.String> getResolvedMultifactorAuthenticationProviders(org.springframework.webflow.execution.RequestContext context)
Gets resolved multifactor authentication providers.- Parameters:
context- the context- Returns:
- the resolved multifactor authentication providers
-
putServiceUserInterfaceMetadata
public static void putServiceUserInterfaceMetadata(org.springframework.webflow.execution.RequestContext requestContext, java.io.Serializable mdui)Sets service user interface metadata.- Parameters:
requestContext- the request contextmdui- the mdui
-
getServiceUserInterfaceMetadata
public static <T> T getServiceUserInterfaceMetadata(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clz)Gets service user interface metadata.- Type Parameters:
T- the type parameter- Parameters:
requestContext- the request contextclz- the clz- Returns:
- the service user interface metadata
-
getServiceRedirectUrl
public static java.lang.String getServiceRedirectUrl(org.springframework.webflow.execution.RequestContext requestContext)
Gets service redirect url.- Parameters:
requestContext- the request context- Returns:
- the service redirect url
-
putServiceRedirectUrl
public static void putServiceRedirectUrl(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String url)Put service response into request scope.- Parameters:
requestContext- the request contexturl- the url
-
putServiceResponseIntoRequestScope
public static void putServiceResponseIntoRequestScope(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.Response response)Put service response into request scope.- Parameters:
requestContext- the request contextresponse- the response
-
putServiceOriginalUrlIntoRequestScope
public static void putServiceOriginalUrlIntoRequestScope(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.WebApplicationService service)Put service original url into request scope.- Parameters:
requestContext- the request contextservice- the service
-
produceUnauthorizedErrorView
public static org.springframework.web.servlet.ModelAndView produceUnauthorizedErrorView(java.lang.Exception ex)
Produce unauthorized error view model and view.- Parameters:
ex- the ex- Returns:
- the model and view
-
produceErrorView
public static org.springframework.web.servlet.ModelAndView produceErrorView(java.lang.String view, java.lang.Throwable e)Produce error view model and view.- Parameters:
view- the viewe- the e- Returns:
- the model and view
-
produceErrorView
public static void produceErrorView(javax.servlet.http.HttpServletRequest request, org.springframework.http.HttpStatus badRequest, java.lang.String message)Produce error view.- Parameters:
request- the requestbadRequest- the bad requestmessage- the message
-
produceErrorView
public static org.springframework.web.servlet.ModelAndView produceErrorView(java.lang.Throwable e)
Produce error view model and view.- Parameters:
e- the e- Returns:
- the model and view
-
getInProgressAuthentication
public static org.apereo.cas.authentication.Authentication getInProgressAuthentication()
Gets in progress authentication.- Returns:
- the in progress authentication
-
putPasswordlessAuthenticationEnabled
public static void putPasswordlessAuthenticationEnabled(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Boolean value)Put passwordless authentication enabled.- Parameters:
requestContext- the request contextvalue- the value
-
putPasswordlessAuthenticationAccount
public static void putPasswordlessAuthenticationAccount(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Object account)Put passwordless authentication account.- Parameters:
requestContext- the request contextaccount- the account
-
getPasswordlessAuthenticationAccount
public static <T> T getPasswordlessAuthenticationAccount(org.springframework.webflow.execution.Event event, java.lang.Class<T> clazz)Gets passwordless authentication account.- Type Parameters:
T- the type parameter- Parameters:
event- the eventclazz- the clazz- Returns:
- the passwordless authentication account
-
getPasswordlessAuthenticationAccount
public static <T> T getPasswordlessAuthenticationAccount(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)Gets passwordless authentication account.- Type Parameters:
T- the type parameter- Parameters:
requestContext- the contextclazz- the clazz- Returns:
- the passwordless authentication account
-
hasPasswordlessAuthenticationAccount
public static boolean hasPasswordlessAuthenticationAccount(org.springframework.webflow.execution.RequestContext requestContext)
Has passwordless authentication account.- Parameters:
requestContext- the request context- Returns:
- true /false
-
putSurrogateAuthenticationRequest
public static void putSurrogateAuthenticationRequest(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)Put request surrogate authentication.- Parameters:
context- the contextvalue- the value
-
hasSurrogateAuthenticationRequest
public static boolean hasSurrogateAuthenticationRequest(org.springframework.webflow.execution.RequestContext requestContext)
Has request surrogate authentication request.- Parameters:
requestContext- the request context- Returns:
- true /false
-
removeSurrogateAuthenticationRequest
public static void removeSurrogateAuthenticationRequest(org.springframework.webflow.execution.RequestContext requestContext)
Has request surrogate authentication request.- Parameters:
requestContext- the request context
-
putSurrogateAuthenticationAccounts
public static void putSurrogateAuthenticationAccounts(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<java.lang.String> surrogates)Put surrogate authentication accounts.- Parameters:
requestContext- the request contextsurrogates- the surrogates
-
getSurrogateAuthenticationAccounts
public static java.util.List<java.lang.String> getSurrogateAuthenticationAccounts(org.springframework.webflow.execution.RequestContext requestContext)
Gets surrogate authentication accounts.- Parameters:
requestContext- the request context- Returns:
- the surrogate authentication accounts
-
putGraphicalUserAuthenticationEnabled
public static void putGraphicalUserAuthenticationEnabled(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Boolean value)Put graphical user authentication enabled.- Parameters:
requestContext- the request contextvalue- the value
-
isGraphicalUserAuthenticationEnabled
public static boolean isGraphicalUserAuthenticationEnabled(org.springframework.webflow.execution.RequestContext requestContext)
Put graphical user authentication enabled.- Parameters:
requestContext- the request context- Returns:
- true /false
-
putGraphicalUserAuthenticationUsername
public static void putGraphicalUserAuthenticationUsername(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String username)Put graphical user authentication username.- Parameters:
requestContext- the request contextusername- the username
-
containsGraphicalUserAuthenticationUsername
public static boolean containsGraphicalUserAuthenticationUsername(org.springframework.webflow.execution.RequestContext requestContext)
Contains graphical user authentication username.- Parameters:
requestContext- the request context- Returns:
- true /false
-
putGraphicalUserAuthenticationImage
public static void putGraphicalUserAuthenticationImage(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String image)Put graphical user authentication image.- Parameters:
requestContext- the request contextimage- the image
-
containsGraphicalUserAuthenticationImage
public static boolean containsGraphicalUserAuthenticationImage(org.springframework.webflow.execution.RequestContext requestContext)
Contains graphical user authentication image boolean.- Parameters:
requestContext- the request context- Returns:
- true /false
-
putDelegatedAuthenticationProviderPrimary
public static void putDelegatedAuthenticationProviderPrimary(org.springframework.webflow.execution.RequestContext context, java.lang.Object client)Put delegated authentication provider dominant.- Parameters:
context- the contextclient- the client
-
getDelegatedAuthenticationProviderPrimary
public static java.lang.Object getDelegatedAuthenticationProviderPrimary(org.springframework.webflow.execution.RequestContext context)
Gets delegated authentication provider primary.- Parameters:
context- the context- Returns:
- the delegated authentication provider primary
-
putAvailableAuthenticationHandleNames
public static void putAvailableAuthenticationHandleNames(org.springframework.webflow.execution.RequestContext context, java.util.Collection<java.lang.String> availableHandlers)Put available authentication handle names.- Parameters:
context- the contextavailableHandlers- the available handlers
-
getAvailableAuthenticationHandleNames
public static java.util.Collection<java.lang.String> getAvailableAuthenticationHandleNames(org.springframework.webflow.execution.RequestContext context)
Gets available authentication handle names.- Parameters:
context- the context- Returns:
- the available authentication handle names
-
putAcceptableUsagePolicyStatusIntoFlowScope
public static void putAcceptableUsagePolicyStatusIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.lang.Object status)Put acceptable usage policy status into flow scope.- Parameters:
context- the contextstatus- the status
-
putAcceptableUsagePolicyTermsIntoFlowScope
public static void putAcceptableUsagePolicyTermsIntoFlowScope(org.springframework.webflow.execution.RequestContext context, java.lang.Object terms)Put acceptable usage policy terms into flow scope.- Parameters:
context- the contextterms- the terms
-
getAcceptableUsagePolicyTermsFromFlowScope
public static <T> T getAcceptableUsagePolicyTermsFromFlowScope(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)Gets acceptable usage policy terms from flow scope.- Type Parameters:
T- the type parameter- Parameters:
requestContext- the request contextclazz- the clazz- Returns:
- the acceptable usage policy terms from flow scope
-
putCustomLoginFormFields
public static void putCustomLoginFormFields(org.springframework.webflow.execution.RequestContext context, java.util.Map customLoginFormFields)Put custom login form fields.- Parameters:
context- the contextcustomLoginFormFields- the custom login form fields
-
putInitialHttpRequestPostParameters
public static void putInitialHttpRequestPostParameters(org.springframework.webflow.execution.RequestContext context)
Put initial http request post parameters.- Parameters:
context- the context
-
putExistingSingleSignOnSessionAvailable
public static void putExistingSingleSignOnSessionAvailable(org.springframework.webflow.execution.RequestContext context, boolean value)Put existing single sign on session available.- Parameters:
context- the contextvalue- the value
-
isExistingSingleSignOnSessionAvailable
public static java.lang.Boolean isExistingSingleSignOnSessionAvailable(org.springframework.webflow.test.MockRequestContext context)
Is existing single sign on session available boolean.- Parameters:
context- the context- Returns:
- the boolean
-
putExistingSingleSignOnSessionPrincipal
public static void putExistingSingleSignOnSessionPrincipal(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.principal.Principal value)Put existing single sign on session principal.- Parameters:
context- the contextvalue- the value
-
putCasLoginFormViewable
public static void putCasLoginFormViewable(org.springframework.webflow.execution.RequestContext context, boolean viewable)Put cas login form viewable.- Parameters:
context- the contextviewable- the viewable
-
isCasLoginFormViewable
public static boolean isCasLoginFormViewable(org.springframework.webflow.execution.RequestContext context)
Is cas login form viewable.- Parameters:
context- the context- Returns:
- true /false Defaults to TRUE if not set in flow scope
-
isCasLoginFormSetToViewable
public static boolean isCasLoginFormSetToViewable(org.springframework.webflow.execution.RequestContext context)
Has login form been set to viewable explicitly.- Parameters:
context- the context- Returns:
- true /false Defaults to FALSE if not set in flow scope
-
getHttpRequestFullUrl
public static java.lang.String getHttpRequestFullUrl(org.springframework.webflow.execution.RequestContext requestContext)
Gets http request full url.- Parameters:
requestContext- the request context- Returns:
- the http request full url
-
getHttpRequestFullUrl
public static java.lang.String getHttpRequestFullUrl(javax.servlet.http.HttpServletRequest request)
Gets http request full url.- Parameters:
request- the request- Returns:
- the http request full url
-
createCredential
public static void createCredential(org.springframework.webflow.execution.RequestContext requestContext)
Create credential.- Parameters:
requestContext- the request context
-
putDelegatedAuthenticationProviderConfigurations
public static void putDelegatedAuthenticationProviderConfigurations(org.springframework.webflow.execution.RequestContext context, java.util.Set<? extends java.io.Serializable> urls)Put delegated authentication provider configurations.- Parameters:
context- the contexturls- the urls
-
putDelegatedAuthenticationDynamicProviderSelection
public static void putDelegatedAuthenticationDynamicProviderSelection(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean result)Put delegated authentication dynamic provider selection.- Parameters:
context- the contextresult- the result
-
isDelegatedAuthenticationDynamicProviderSelection
public static java.lang.Boolean isDelegatedAuthenticationDynamicProviderSelection(org.springframework.webflow.execution.RequestContext context)
Put delegated authentication dynamic provider selection.- Parameters:
context- the context- Returns:
- the boolean
-
getDelegatedAuthenticationProviderConfigurations
public static java.util.Set<? extends java.io.Serializable> getDelegatedAuthenticationProviderConfigurations(org.springframework.webflow.execution.RequestContext context)
Gets delegated authentication provider configurations.- Parameters:
context- the context- Returns:
- the delegated authentication provider configurations
-
putOpenIdLocalUserId
public static void putOpenIdLocalUserId(org.springframework.webflow.execution.RequestContext context, java.lang.String user)Put open id local user id.- Parameters:
context- the contextuser- the user
-
getOpenIdLocalUserId
@Deprecated(since="6.2.0") public static java.lang.String getOpenIdLocalUserId(org.springframework.webflow.execution.RequestContext context)
Deprecated.Since 6.2.0Gets open id local user id.- Parameters:
context- the context- Returns:
- the open id local user id
-
putMultifactorAuthenticationProviderIdIntoFlowScope
public static void putMultifactorAuthenticationProviderIdIntoFlowScope(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider)Add the mfa provider id into flow scope.- Parameters:
context- request contextprovider- the mfa provider
-
getMultifactorAuthenticationProviderById
public static java.lang.String getMultifactorAuthenticationProviderById(org.springframework.webflow.execution.RequestContext context)
Get the mfa provider id from flow scope.- Parameters:
context- request context- Returns:
- provider id
-
putSelectableMultifactorAuthenticationProviders
public static void putSelectableMultifactorAuthenticationProviders(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<java.lang.String> mfaProviders)Put selectable multifactor authentication providers.- Parameters:
requestContext- the request contextmfaProviders- the mfa providers
-
getSelectableMultifactorAuthenticationProviders
public static java.util.List<java.lang.String> getSelectableMultifactorAuthenticationProviders(org.springframework.webflow.execution.RequestContext requestContext)
Gets selectable multifactor authentication providers.- Parameters:
requestContext- the request context- Returns:
- the selectable multifactor authentication providers
-
putOneTimeTokenAccount
public static void putOneTimeTokenAccount(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.OneTimeTokenAccount account)Put one time token account.- Parameters:
requestContext- the request contextaccount- the account
-
putOneTimeTokenAccounts
public static void putOneTimeTokenAccounts(org.springframework.webflow.execution.RequestContext requestContext, java.util.Collection accounts)Put one time token accounts.- Parameters:
requestContext- the request contextaccounts- the accounts
-
getOneTimeTokenAccount
public static <T extends org.apereo.cas.authentication.OneTimeTokenAccount> T getOneTimeTokenAccount(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)Gets one time token account.- Type Parameters:
T- the type parameter- Parameters:
requestContext- the request contextclazz- the clazz- Returns:
- the one time token account
-
putGoogleAuthenticatorMultipleDeviceRegistrationEnabled
public static void putGoogleAuthenticatorMultipleDeviceRegistrationEnabled(org.springframework.webflow.execution.RequestContext requestContext, boolean enabled)Put google authenticator multiple device registration enabled.- Parameters:
requestContext- the request contextenabled- the enabled
-
isGoogleAuthenticatorMultipleDeviceRegistrationEnabled
public static java.lang.Boolean isGoogleAuthenticatorMultipleDeviceRegistrationEnabled(org.springframework.webflow.execution.RequestContext requestContext)
Is google authenticator multiple device registration enabled?- Parameters:
requestContext- the request context- Returns:
- true /false
-
putYubiKeyMultipleDeviceRegistrationEnabled
public static void putYubiKeyMultipleDeviceRegistrationEnabled(org.springframework.webflow.execution.RequestContext requestContext, boolean enabled)Put yubikey multiple device registration enabled.- Parameters:
requestContext- the request contextenabled- the enabled
-
putSingleLogoutRequest
public static void putSingleLogoutRequest(javax.servlet.http.HttpServletRequest request, java.lang.String logoutRequest)Put single logout request.- Parameters:
request- the requestlogoutRequest- the logout request
-
getSingleLogoutRequest
public static java.lang.String getSingleLogoutRequest(javax.servlet.http.HttpServletRequest request)
Gets single logout request.- Parameters:
request- the request- Returns:
- the single logout request
-
getDelegatedAuthenticationClientName
public static java.lang.String getDelegatedAuthenticationClientName(org.springframework.webflow.execution.RequestContext requestContext)
Gets delegated authentication client name.- Parameters:
requestContext- the request context- Returns:
- the delegated authentication client name
-
putDelegatedAuthenticationClientName
public static void putDelegatedAuthenticationClientName(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String clientName)Put delegated authentication client name.- Parameters:
requestContext- the request contextclientName- the client name
-
putAuthorizedServices
public static void putAuthorizedServices(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<org.apereo.cas.services.RegisteredService> authorizedServices)Put authorized services.- Parameters:
requestContext- the request contextauthorizedServices- the authorized services
-
putSingleSignOnSessions
public static void putSingleSignOnSessions(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<? extends java.io.Serializable> sessions)Put single sign on sessions.- Parameters:
requestContext- the request contextsessions- the sessions
-
getSingleSignOnSessions
public static java.util.List<? extends java.io.Serializable> getSingleSignOnSessions(org.springframework.webflow.execution.RequestContext requestContext)
Gets single sign on sessions.- Parameters:
requestContext- the request context- Returns:
- the single sign on sessions
-
getAuthorizedServices
public java.util.List<org.apereo.cas.services.RegisteredService> getAuthorizedServices(org.springframework.webflow.execution.RequestContext requestContext)
Gets authorized services.- Parameters:
requestContext- the request context- Returns:
- the authorized services
-
putRecaptchaForgotUsernameEnabled
public static void putRecaptchaForgotUsernameEnabled(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties properties)Put recaptcha forgot username enabled.- Parameters:
requestContext- the request contextproperties- the properties
-
isRecaptchaForgotUsernameEnabled
public static java.lang.Boolean isRecaptchaForgotUsernameEnabled(org.springframework.webflow.execution.RequestContext requestContext)
Is recaptcha forgot username enabled.- Parameters:
requestContext- the request context- Returns:
- the boolean
-
putRecaptchaPasswordManagementEnabled
public static void putRecaptchaPasswordManagementEnabled(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties recaptcha)Put recaptcha password management enabled.- Parameters:
requestContext- the request contextrecaptcha- the recaptcha
-
isRecaptchaPasswordManagementEnabled
public static java.lang.Boolean isRecaptchaPasswordManagementEnabled(org.springframework.webflow.execution.RequestContext requestContext)
Is recaptcha forgot username enabled.- Parameters:
requestContext- the request context- Returns:
- the boolean
-
putSimpleMultifactorAuthenticationToken
public static void putSimpleMultifactorAuthenticationToken(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.ticket.Ticket token)Put simple multifactor authentication token.- Parameters:
requestContext- the request contexttoken- the token
-
removeSimpleMultifactorAuthenticationToken
public static void removeSimpleMultifactorAuthenticationToken(org.springframework.webflow.execution.RequestContext requestContext)
Remove simple multifactor authentication token.- Parameters:
requestContext- the request context
-
getSimpleMultifactorAuthenticationToken
public static <T extends org.apereo.cas.ticket.Ticket> T getSimpleMultifactorAuthenticationToken(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)Gets simple multifactor authentication token.- Type Parameters:
T- the type parameter- Parameters:
requestContext- the request contextclazz- the clazz- Returns:
- the simple multifactor authentication token
-
resolveRegisteredService
public static org.apereo.cas.services.RegisteredService resolveRegisteredService(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.AuthenticationServiceSelectionPlan serviceSelectionStrategy)Resolve registered service.- Parameters:
requestContext- the request contextservicesManager- the services managerserviceSelectionStrategy- the service selection strategy- Returns:
- the service
-
addErrorMessageToContext
public static void addErrorMessageToContext(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code, java.lang.String defaultText, java.lang.Object[] args)Add error message to context.- Parameters:
requestContext- the request contextcode- the codedefaultText- the default textargs- the args
-
addErrorMessageToContext
public static void addErrorMessageToContext(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code, java.lang.String defaultText)Add error message to context.- Parameters:
requestContext- the request contextcode- the codedefaultText- the default text
-
addErrorMessageToContext
public static void addErrorMessageToContext(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code)Add error message to context.- Parameters:
requestContext- the request contextcode- the code
-
addErrorMessageToContext
public static void addErrorMessageToContext(org.springframework.binding.message.MessageContext messageContext, java.lang.String code, java.lang.String defaultText, java.lang.Object[] args)Add error message to context.- Parameters:
messageContext- the message contextcode- the codedefaultText- the default textargs- the args
-
addInfoMessageToContext
public static void addInfoMessageToContext(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code)Add info message to context.- Parameters:
requestContext- the request contextcode- the code
-
putLogoutPostUrl
public static void putLogoutPostUrl(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String postUrl)Put the logout POST url in the flow scope.- Parameters:
requestContext- the flow contextpostUrl- the POST url
-
putLogoutPostData
public static void putLogoutPostData(org.springframework.webflow.execution.RequestContext requestContext, java.util.Map<java.lang.String,java.lang.Object> postData)Put the logout POST data in the flow scope.- Parameters:
requestContext- the flow contextpostData- the POST data
-
getLogoutPostUrl
public static java.lang.String getLogoutPostUrl(org.springframework.webflow.execution.RequestContext requestContext)
Get the logout POST url from the flow scope.- Parameters:
requestContext- the flow context- Returns:
- the POST url
-
getLogoutPostData
public static java.util.Map<java.lang.String,java.lang.Object> getLogoutPostData(org.springframework.webflow.execution.RequestContext requestContext)
Get the logout POST data from the flow scope.- Parameters:
requestContext- the flow context- Returns:
- the POST data
-
putPasswordPolicyPattern
public static void putPasswordPolicyPattern(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String policyPattern)Put password reset password policy pattern string.- Parameters:
requestContext- the request contextpolicyPattern- the policy pattern
-
getPasswordPolicyPattern
public static java.lang.String getPasswordPolicyPattern(org.springframework.webflow.execution.RequestContext requestContext)
Gets password reset password policy pattern.- Parameters:
requestContext- the request context- Returns:
- the password reset password policy pattern
-
isInterruptAuthenticationFlowFinalized
public static boolean isInterruptAuthenticationFlowFinalized(org.springframework.webflow.execution.RequestContext requestContext)
Is interrupt authentication flow finalized.- Parameters:
requestContext- the request context- Returns:
- the boolean
-
putInterruptAuthenticationFlowFinalized
public static void putInterruptAuthenticationFlowFinalized(org.springframework.webflow.execution.RequestContext requestContext)
Put interrupt authentication flow finalized.- Parameters:
requestContext- the request context
-
removeInterruptAuthenticationFlowFinalized
public static void removeInterruptAuthenticationFlowFinalized(org.springframework.webflow.execution.RequestContext requestContext)
Remove interrupt authentication flow finalized.- Parameters:
requestContext- the request context
-
getMultifactorAuthenticationParentCredential
public static org.apereo.cas.authentication.Credential getMultifactorAuthenticationParentCredential(org.springframework.webflow.execution.RequestContext requestContext)
Gets multifactor authentication parent credential.- Parameters:
requestContext- the request context- Returns:
- the multifactor authentication parent credential
-
putWsFederationDelegatedClients
public static void putWsFederationDelegatedClients(org.springframework.webflow.execution.RequestContext context, java.util.List<? extends java.io.Serializable> clients)Put ws federation delegated clients.- Parameters:
context- the contextclients- the clients
-
getWsFederationDelegatedClients
public static <T extends java.io.Serializable> java.util.List<T> getWsFederationDelegatedClients(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Get ws federation delegated clients as list.- Type Parameters:
T- the type parameter- Parameters:
context- the contextclazz- the clazz- Returns:
- the list
-
putMultifactorAuthenticationRegisteredDevices
public static void putMultifactorAuthenticationRegisteredDevices(org.springframework.webflow.execution.RequestContext requestContext, java.util.List accounts)Put multifactor authentication registered devices.- Parameters:
requestContext- the request contextaccounts- the accounts
-
getMultifactorAuthenticationRegisteredDevices
public java.util.List getMultifactorAuthenticationRegisteredDevices(org.springframework.webflow.execution.RequestContext requestContext)
Gets multifactor authentication registered devices.- Parameters:
requestContext- the request context- Returns:
- the multifactor authentication registered devices
-
putDelegatedAuthenticationDisabled
public static void putDelegatedAuthenticationDisabled(org.springframework.webflow.execution.RequestContext requestContext, boolean disabled)Put delegated authentication.- Parameters:
requestContext- the request contextdisabled- the disabled
-
putDelegatedClientAuthenticationResolvedCredentials
public static void putDelegatedClientAuthenticationResolvedCredentials(org.springframework.webflow.execution.RequestContext context, java.util.List<? extends java.io.Serializable> candidateMatches)Put delegated client authentication resolved credentials.- Parameters:
context- the contextcandidateMatches- the candidate matches
-
getDelegatedClientAuthenticationResolvedCredentials
public static <T extends java.io.Serializable> java.util.List<T> getDelegatedClientAuthenticationResolvedCredentials(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Gets delegated client authentication resolved credentials.- Type Parameters:
T- the type parameter- Parameters:
context- the contextclazz- the clazz- Returns:
- the delegated client authentication resolved credentials
-
getDelegatedClientAuthenticationCandidateProfile
public static <T> T getDelegatedClientAuthenticationCandidateProfile(org.springframework.webflow.execution.RequestContext context, java.lang.Class<T> clazz)Gets delegated client authentication candidate profile.- Type Parameters:
T- the type parameter- Parameters:
context- the contextclazz- the clazz- Returns:
- the delegated client authentication candidate profile
-
hasDelegatedClientAuthenticationCandidateProfile
public static boolean hasDelegatedClientAuthenticationCandidateProfile(org.springframework.webflow.execution.RequestContext context)
Has delegated client authentication candidate profile?- Parameters:
context- the context- Returns:
- true /false
-
putDelegatedClientAuthenticationCandidateProfile
public static void putDelegatedClientAuthenticationCandidateProfile(org.springframework.webflow.execution.RequestContext context, java.io.Serializable profile)Put delegated client authentication candidate profile.- Parameters:
context- the contextprofile- the profile
-
-