Class WebUtils


  • public class WebUtils
    extends java.lang.Object
    Common utilities for the web tier.
    Since:
    3.1
    • Constructor Summary

      Constructors 
      Constructor Description
      WebUtils()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      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.
      static void addErrorMessageToContext​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code)
      Add error message to context.
      static void addErrorMessageToContext​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code, java.lang.String defaultText)
      Add error message to context.
      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.
      static void addInfoMessageToContext​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String code)
      Add info message to context.
      static boolean containsGraphicalUserAuthenticationImage​(org.springframework.webflow.execution.RequestContext requestContext)
      Contains graphical user authentication image boolean.
      static boolean containsGraphicalUserAuthenticationUsername​(org.springframework.webflow.execution.RequestContext requestContext)
      Contains graphical user authentication username.
      static void createCredential​(org.springframework.webflow.execution.RequestContext requestContext)
      Create credential.
      static <T> T getAcceptableUsagePolicyTermsFromFlowScope​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)
      Gets acceptable usage policy terms from flow scope.
      static org.apereo.cas.authentication.Authentication getAuthentication​(org.springframework.webflow.execution.RequestContext ctx)
      Gets authentication from conversation scope.
      static org.apereo.cas.authentication.AuthenticationResult getAuthenticationResult​(org.springframework.webflow.execution.RequestContext ctx)
      Gets authentication result builder.
      static org.apereo.cas.authentication.AuthenticationResultBuilder getAuthenticationResultBuilder​(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.Credential getCredential​(org.springframework.webflow.execution.RequestContext context)
      Gets credential from the context.
      static <T extends org.apereo.cas.authentication.Credential>
      T
      getCredential​(org.springframework.webflow.execution.RequestContext context, @NonNull java.lang.Class<T> clazz)
      Gets credential.
      static java.lang.String getDelegatedAuthenticationClientName​(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.Object getDelegatedAuthenticationProviderPrimary​(org.springframework.webflow.execution.RequestContext context)
      Gets delegated authentication provider primary.
      static <T> T getDelegatedClientAuthenticationCandidateProfile​(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.String getHttpRequestFullUrl​(javax.servlet.http.HttpServletRequest request)
      Gets http request full url.
      static java.lang.String getHttpRequestFullUrl​(org.springframework.webflow.execution.RequestContext requestContext)
      Gets http request full url.
      static javax.servlet.http.HttpServletRequest getHttpServletRequestFromExternalWebflowContext()
      Gets the http servlet request from the current servlet context.
      static javax.servlet.http.HttpServletRequest getHttpServletRequestFromExternalWebflowContext​(org.springframework.webflow.execution.RequestContext context)
      Gets the http servlet request from the context.
      static org.apereo.cas.authentication.adaptive.geo.GeoLocationRequest getHttpServletRequestGeoLocation​(javax.servlet.http.HttpServletRequest servletRequest)
      Gets http servlet request geo location.
      static org.apereo.cas.authentication.adaptive.geo.GeoLocationRequest getHttpServletRequestGeoLocationFromRequestContext()
      Gets http servlet request geo location.
      static org.apereo.cas.authentication.adaptive.geo.GeoLocationRequest getHttpServletRequestGeoLocationFromRequestContext​(org.springframework.webflow.execution.RequestContext context)
      Gets http servlet request geo location.
      static java.lang.String getHttpServletRequestUserAgentFromRequestContext()
      Gets http servlet request user agent.
      static java.lang.String getHttpServletRequestUserAgentFromRequestContext​(javax.servlet.http.HttpServletRequest request)
      Gets http servlet request user agent from request context.
      static java.lang.String getHttpServletRequestUserAgentFromRequestContext​(org.springframework.webflow.execution.RequestContext context)
      Gets http servlet request user agent from request context.
      static javax.servlet.http.HttpServletResponse getHttpServletResponseFromExternalWebflowContext()
      Gets the http servlet response from the current servlet context.
      static javax.servlet.http.HttpServletResponse getHttpServletResponseFromExternalWebflowContext​(org.springframework.webflow.execution.RequestContext context)
      Gets the http servlet response from the context.
      static org.apereo.cas.authentication.Authentication getInProgressAuthentication()
      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.String getLogoutPostUrl​(org.springframework.webflow.execution.RequestContext requestContext)
      Get the logout POST url from the flow scope.
      static <T> T getLogoutRedirectUrl​(javax.servlet.http.HttpServletRequest request, java.lang.Class<T> clazz)
      Gets logout redirect url.
      static <T> T getLogoutRedirectUrl​(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.Credential getMultifactorAuthenticationParentCredential​(org.springframework.webflow.execution.RequestContext requestContext)
      Gets multifactor authentication parent credential.
      static java.lang.String getMultifactorAuthenticationProviderById​(org.springframework.webflow.execution.RequestContext context)
      Get the mfa provider id from flow scope.
      java.util.List getMultifactorAuthenticationRegisteredDevices​(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>
      T
      getOneTimeTokenAccount​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)
      Gets one time token account.
      static java.lang.String getOpenIdLocalUserId​(org.springframework.webflow.execution.RequestContext context)
      Deprecated.
      Since 6.2.0
      static <T> T getPasswordlessAuthenticationAccount​(org.springframework.webflow.execution.Event event, java.lang.Class<T> clazz)
      Gets passwordless authentication account.
      static <T> T getPasswordlessAuthenticationAccount​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clazz)
      Gets passwordless authentication account.
      static java.lang.String getPasswordPolicyPattern​(org.springframework.webflow.execution.RequestContext requestContext)
      Gets password reset password policy pattern.
      static org.apereo.cas.authentication.principal.Principal getPrincipalFromRequestContext​(org.springframework.webflow.execution.RequestContext requestContext)
      Gets principal from request context.
      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.
      static java.lang.String getRecaptchaSiteKey​(org.springframework.webflow.execution.RequestContext context)
      Gets recaptcha site key.
      static org.apereo.cas.services.RegisteredService getRegisteredService​(javax.servlet.http.HttpServletRequest request)
      Gets registered service.
      static org.apereo.cas.services.RegisteredService getRegisteredService​(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.WebApplicationService getService​(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.WebApplicationService getService​(org.springframework.webflow.execution.RequestContext context)
      Gets the service from the flow scope.
      static java.lang.String getServiceRedirectUrl​(org.springframework.webflow.execution.RequestContext requestContext)
      Gets service redirect url.
      static java.lang.String getServiceTicketFromRequestScope​(org.springframework.webflow.execution.RequestContext context)
      Gets the service ticket from request scope.
      static <T> T getServiceUserInterfaceMetadata​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Class<T> clz)
      Gets service user interface metadata.
      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.
      static java.lang.String getSingleLogoutRequest​(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.TicketGrantingTicket getTicketGrantingTicket​(org.springframework.webflow.execution.RequestContext context)
      Get ticket granting ticket.
      static java.lang.String getTicketGrantingTicketId​(org.springframework.webflow.execution.RequestContext context)
      Gets the ticket granting ticket id from the request and flow scopes.
      static java.lang.String getTicketGrantingTicketIdFrom​(org.springframework.webflow.core.collection.MutableAttributeMap scopeMap)
      Gets ticket granting ticket id from.
      static java.net.URI getUnauthorizedRedirectUrlFromFlowScope​(org.springframework.webflow.execution.RequestContext context)
      Gets unauthorized redirect url into flow scope.
      static boolean getWarningCookie​(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 boolean hasDelegatedClientAuthenticationCandidateProfile​(org.springframework.webflow.execution.RequestContext context)
      Has delegated client authentication candidate profile?
      static boolean hasPasswordlessAuthenticationAccount​(org.springframework.webflow.execution.RequestContext requestContext)
      Has passwordless authentication account.
      static boolean hasSurrogateAuthenticationRequest​(org.springframework.webflow.execution.RequestContext requestContext)
      Has request surrogate authentication request.
      static boolean isAuthenticatingAtPublicWorkstation​(org.springframework.webflow.execution.RequestContext ctx)
      Is authenticating at a public workstation?
      static boolean isCasLoginFormSetToViewable​(org.springframework.webflow.execution.RequestContext context)
      Has login form been set to viewable explicitly.
      static boolean isCasLoginFormViewable​(org.springframework.webflow.execution.RequestContext context)
      Is cas login form viewable.
      static java.lang.Boolean isDelegatedAuthenticationDynamicProviderSelection​(org.springframework.webflow.execution.RequestContext context)
      Put delegated authentication dynamic provider selection.
      static java.lang.Boolean isExistingSingleSignOnSessionAvailable​(org.springframework.webflow.test.MockRequestContext context)
      Is existing single sign on session available boolean.
      static java.lang.Boolean isGeoLocationTrackingIntoFlowScope​(org.springframework.webflow.execution.RequestContext context)
      Gets geo location tracking into flow scope.
      static java.lang.Boolean isGoogleAuthenticatorMultipleDeviceRegistrationEnabled​(org.springframework.webflow.execution.RequestContext requestContext)
      Is google authenticator multiple device registration enabled?
      static boolean isGraphicalUserAuthenticationEnabled​(org.springframework.webflow.execution.RequestContext requestContext)
      Put graphical user authentication enabled.
      static boolean isInterruptAuthenticationFlowFinalized​(org.springframework.webflow.execution.RequestContext requestContext)
      Is interrupt authentication flow finalized.
      static boolean isPasswordManagementEnabled​(org.springframework.webflow.execution.RequestContext context)
      Is password management enabled.
      static java.lang.Boolean isRecaptchaForgotUsernameEnabled​(org.springframework.webflow.execution.RequestContext requestContext)
      Is recaptcha forgot username enabled.
      static java.lang.Boolean isRecaptchaPasswordManagementEnabled​(org.springframework.webflow.execution.RequestContext requestContext)
      Is recaptcha forgot username enabled.
      static java.lang.Boolean isRememberMeAuthenticationEnabled​(org.springframework.webflow.execution.RequestContext context)
      Is remember me authentication enabled ?.
      static org.springframework.web.servlet.ModelAndView produceErrorView​(java.lang.String view, java.lang.Throwable e)
      Produce error view model and view.
      static org.springframework.web.servlet.ModelAndView produceErrorView​(java.lang.Throwable e)
      Produce error view model and view.
      static void produceErrorView​(javax.servlet.http.HttpServletRequest request, org.springframework.http.HttpStatus badRequest, java.lang.String message)
      Produce error view.
      static org.springframework.web.servlet.ModelAndView produceUnauthorizedErrorView​(java.lang.Exception ex)
      Produce unauthorized error view model and view.
      static void putAcceptableUsagePolicyStatusIntoFlowScope​(org.springframework.webflow.execution.RequestContext context, java.lang.Object status)
      Put acceptable usage policy status into flow scope.
      static void putAcceptableUsagePolicyTermsIntoFlowScope​(org.springframework.webflow.execution.RequestContext context, java.lang.Object terms)
      Put acceptable usage policy terms into flow scope.
      static void putAccountProfileManagementEnabled​(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)
      Put account profile management enabled.
      static void putAuthentication​(org.apereo.cas.authentication.Authentication authentication, org.springframework.webflow.execution.RequestContext ctx)
      Put authentication into conversation scope.
      static void putAuthenticationResult​(org.apereo.cas.authentication.AuthenticationResult authenticationResult, org.springframework.webflow.execution.RequestContext context)
      Put authentication result.
      static void putAuthenticationResultBuilder​(org.apereo.cas.authentication.AuthenticationResultBuilder builder, org.springframework.webflow.execution.RequestContext ctx)
      Put authentication result builder.
      static void putAuthorizedServices​(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<org.apereo.cas.services.RegisteredService> authorizedServices)
      Put authorized services.
      static void putAvailableAuthenticationHandleNames​(org.springframework.webflow.execution.RequestContext context, java.util.Collection<java.lang.String> availableHandlers)
      Put available authentication handle names.
      static void putCasLoginFormViewable​(org.springframework.webflow.execution.RequestContext context, boolean viewable)
      Put cas login form viewable.
      static void putCredential​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.Credential credential)
      Puts credential into the context.
      static void putCredentialIntoScope​(org.springframework.webflow.core.collection.MutableAttributeMap<java.lang.Object> scope, org.apereo.cas.authentication.Credential credential)
      Put credential into scope.
      static void putCustomLoginFormFields​(org.springframework.webflow.execution.RequestContext context, java.util.Map customLoginFormFields)
      Put custom login form fields.
      static void putDelegatedAuthenticationClientName​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String clientName)
      Put delegated authentication client name.
      static void putDelegatedAuthenticationDisabled​(org.springframework.webflow.execution.RequestContext requestContext, boolean disabled)
      Put delegated authentication.
      static void putDelegatedAuthenticationDynamicProviderSelection​(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean result)
      Put delegated authentication dynamic provider selection.
      static void putDelegatedAuthenticationProviderConfigurations​(org.springframework.webflow.execution.RequestContext context, java.util.Set<? extends java.io.Serializable> urls)
      Put delegated authentication provider configurations.
      static void putDelegatedAuthenticationProviderPrimary​(org.springframework.webflow.execution.RequestContext context, java.lang.Object client)
      Put delegated authentication provider dominant.
      static void putDelegatedClientAuthenticationCandidateProfile​(org.springframework.webflow.execution.RequestContext context, java.io.Serializable profile)
      Put delegated client authentication candidate profile.
      static void putDelegatedClientAuthenticationResolvedCredentials​(org.springframework.webflow.execution.RequestContext context, java.util.List<? extends java.io.Serializable> candidateMatches)
      Put delegated client authentication resolved credentials.
      static void putExistingSingleSignOnSessionAvailable​(org.springframework.webflow.execution.RequestContext context, boolean value)
      Put existing single sign on session available.
      static void putExistingSingleSignOnSessionPrincipal​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.principal.Principal value)
      Put existing single sign on session principal.
      static void putGeoLocationTrackingIntoFlowScope​(org.springframework.webflow.execution.RequestContext context, java.lang.Object value)
      Put geo location tracking into flow scope.
      static void putGoogleAuthenticatorMultipleDeviceRegistrationEnabled​(org.springframework.webflow.execution.RequestContext requestContext, boolean enabled)
      Put google authenticator multiple device registration enabled.
      static void putGraphicalUserAuthenticationEnabled​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Boolean value)
      Put graphical user authentication enabled.
      static void putGraphicalUserAuthenticationImage​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String image)
      Put graphical user authentication image.
      static void putGraphicalUserAuthenticationUsername​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String username)
      Put graphical user authentication username.
      static void putInitialHttpRequestPostParameters​(org.springframework.webflow.execution.RequestContext context)
      Put initial http request post parameters.
      static void putInterruptAuthenticationFlowFinalized​(org.springframework.webflow.execution.RequestContext requestContext)
      Put interrupt authentication flow finalized.
      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.
      static void putLogoutPostUrl​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String postUrl)
      Put the logout POST url in the flow scope.
      static void putLogoutRedirectUrl​(javax.servlet.http.HttpServletRequest request, java.lang.String service)
      Put logout redirect url.
      static void putLogoutRedirectUrl​(org.springframework.webflow.execution.RequestContext context, java.lang.String service)
      Put logout redirect url.
      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.
      static void putLogoutUrls​(org.springframework.webflow.execution.RequestContext context, java.util.Map urls)
      Put logout urls into flow scope.
      static void putMultifactorAuthenticationProviderIdIntoFlowScope​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider)
      Add the mfa provider id into flow scope.
      static void putMultifactorAuthenticationRegisteredDevices​(org.springframework.webflow.execution.RequestContext requestContext, java.util.List accounts)
      Put multifactor authentication registered devices.
      static void putMultifactorAuthenticationTrustRecord​(org.springframework.webflow.execution.RequestContext context, java.io.Serializable object)
      Put multifactor authentication trust record.
      static void putOneTimeTokenAccount​(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.OneTimeTokenAccount account)
      Put one time token account.
      static void putOneTimeTokenAccounts​(org.springframework.webflow.execution.RequestContext requestContext, java.util.Collection accounts)
      Put one time token accounts.
      static void putOpenIdLocalUserId​(org.springframework.webflow.execution.RequestContext context, java.lang.String user)
      Put open id local user id.
      static void putPasswordlessAuthenticationAccount​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Object account)
      Put passwordless authentication account.
      static void putPasswordlessAuthenticationEnabled​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.Boolean value)
      Put passwordless authentication enabled.
      static void putPasswordManagementEnabled​(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)
      Put password management enabled flow scope.
      static void putPasswordPolicyPattern​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String policyPattern)
      Put password reset password policy pattern string.
      static void putPrincipal​(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.Principal authenticationPrincipal)
      Put principal.
      static void putPublicWorkstationToFlowIfRequestParameterPresent​(org.springframework.webflow.execution.RequestContext context)
      Put public workstation into the flow if request parameter present.
      static void putRecaptchaForgotUsernameEnabled​(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties properties)
      Put recaptcha forgot username enabled.
      static void putRecaptchaPasswordManagementEnabled​(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties recaptcha)
      Put recaptcha password management enabled.
      static void putRecaptchaPropertiesFlowScope​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties googleRecaptcha)
      Put recaptcha settings flow scope.
      static void putRegisteredService​(javax.servlet.http.HttpServletRequest request, org.apereo.cas.services.RegisteredService registeredService)
      Put registered service.
      static void putRegisteredService​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.services.RegisteredService registeredService)
      Put registered service into flowscope.
      static void putRememberMeAuthenticationEnabled​(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean enabled)
      Put remember me authentication enabled.
      static void putResolvedEventsAsAttribute​(org.springframework.webflow.execution.RequestContext context, java.util.Collection<org.springframework.webflow.execution.Event> resolvedEvents)
      Put resolved events as attribute.
      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.
      static void putSecurityQuestionsEnabled​(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)
      Put security questions enabled into flow scope.
      static void putSelectableMultifactorAuthenticationProviders​(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<java.lang.String> mfaProviders)
      Put selectable multifactor authentication providers.
      static void putServiceIntoFlashScope​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.principal.Service service)
      Put service into flashscope.
      static void putServiceIntoFlowScope​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.principal.Service service)
      Put service into flowscope.
      static void putServiceOriginalUrlIntoRequestScope​(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.WebApplicationService service)
      Put service original url into request scope.
      static void putServiceRedirectUrl​(org.springframework.webflow.execution.RequestContext requestContext, java.lang.String url)
      Put service response into request scope.
      static void putServiceResponseIntoRequestScope​(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.Response response)
      Put service response into request scope.
      static void putServiceTicketInRequestScope​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.ticket.ServiceTicket ticketValue)
      Put service ticket in request scope.
      static void putServiceUserInterfaceMetadata​(org.springframework.webflow.execution.RequestContext requestContext, java.io.Serializable mdui)
      Sets service user interface metadata.
      static void putSimpleMultifactorAuthenticationToken​(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.ticket.Ticket token)
      Put simple multifactor authentication token.
      static void putSingleLogoutRequest​(javax.servlet.http.HttpServletRequest request, java.lang.String logoutRequest)
      Put single logout request.
      static void putSingleSignOnSessions​(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<? extends java.io.Serializable> sessions)
      Put single sign on sessions.
      static void putStaticAuthenticationIntoFlowScope​(org.springframework.webflow.execution.RequestContext context, java.lang.Object value)
      Put static authentication into flow scope.
      static void putSurrogateAuthenticationAccounts​(org.springframework.webflow.execution.RequestContext requestContext, java.util.List<java.lang.String> surrogates)
      Put surrogate authentication accounts.
      static void putSurrogateAuthenticationRequest​(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean value)
      Put request surrogate authentication.
      static void putTicketGrantingTicket​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.ticket.TicketGrantingTicket ticket)
      Put ticket granting ticket.
      static void putTicketGrantingTicketInScopes​(org.springframework.webflow.execution.RequestContext context, java.lang.String ticketValue)
      Put ticket granting ticket in request and flow scopes.
      static void putTicketGrantingTicketInScopes​(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.ticket.TicketGrantingTicket ticket)
      Put ticket granting ticket in request and flow scopes.
      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.
      static void putUnauthorizedRedirectUrlIntoFlowScope​(org.springframework.webflow.execution.RequestContext context, java.net.URI url)
      Adds the unauthorized redirect url to the flow scope.
      static void putWarnCookieIfRequestParameterPresent​(org.apereo.cas.web.cookie.CasCookieBuilder warnCookieGenerator, org.springframework.webflow.execution.RequestContext context)
      Put warn cookie if request parameter present.
      static void putWarningCookie​(org.springframework.webflow.execution.RequestContext context, java.lang.Boolean cookieValue)
      Put warning cookie value into flowscope.
      static void putWsFederationDelegatedClients​(org.springframework.webflow.execution.RequestContext context, java.util.List<? extends java.io.Serializable> clients)
      Put ws federation delegated clients.
      static void putYubiKeyMultipleDeviceRegistrationEnabled​(org.springframework.webflow.execution.RequestContext requestContext, boolean enabled)
      Put yubikey multiple device registration enabled.
      static void removeCredential​(org.springframework.webflow.execution.RequestContext context)
      Remove credential.
      static void removeInterruptAuthenticationFlowFinalized​(org.springframework.webflow.execution.RequestContext requestContext)
      Remove interrupt authentication flow finalized.
      static void removeLogoutRedirectUrl​(org.springframework.webflow.execution.RequestContext context)
      Remove logout redirect url.
      static void removeSimpleMultifactorAuthenticationToken​(org.springframework.webflow.execution.RequestContext requestContext)
      Remove simple multifactor authentication token.
      static void removeSurrogateAuthenticationRequest​(org.springframework.webflow.execution.RequestContext requestContext)
      Has request surrogate authentication request.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • WebUtils

        public WebUtils()
    • 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 context
        resolvedEvents - 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 extractors
        context - 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 context
        ticket - 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 context
        ticket - 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 context
        ticketValue - 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 map
        ticketValue - 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 context
        ticketValue - 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 context
        url - 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 context
        requests - 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 context
        urls - 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 context
        service - 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 context
        service - 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 context
        cookieValue - 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 request
        registeredService - 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 context
        registeredService - 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 context
        clazz - 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 context
        credential - 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 scope
        credential - 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 generator
        context - 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 authentication
        ctx - 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 builder
        ctx - 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 context
        ticketRegistrySupport - 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 result
        context - 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 context
        value - 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 context
        googleRecaptcha - 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 context
        value - 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 context
        value - 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 context
        value - 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 context
        value - 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 context
        authenticationPrincipal - 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 context
        service - the service
      • putLogoutRedirectUrl

        public static void putLogoutRedirectUrl​(javax.servlet.http.HttpServletRequest request,
                                                java.lang.String service)
        Put logout redirect url.
        Parameters:
        request - the context
        service - 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 request
        clazz - 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 context
        clazz - 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 context
        enabled - 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 context
        clazz - 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 context
        object - 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 context
        value - 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 context
        mdui - 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 context
        clz - 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 context
        url - 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 context
        response - 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 context
        service - 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 view
        e - 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 request
        badRequest - the bad request
        message - 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 context
        value - 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 context
        account - 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 event
        clazz - 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 context
        clazz - 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 context
        value - 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 context
        surrogates - 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 context
        value - 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 context
        username - 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 context
        image - 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 context
        client - 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 context
        availableHandlers - 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 context
        status - 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 context
        terms - 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 context
        clazz - 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 context
        customLoginFormFields - 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 context
        value - 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 context
        value - the value
      • putCasLoginFormViewable

        public static void putCasLoginFormViewable​(org.springframework.webflow.execution.RequestContext context,
                                                   boolean viewable)
        Put cas login form viewable.
        Parameters:
        context - the context
        viewable - 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 context
        urls - 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 context
        result - 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 context
        user - the user
      • getOpenIdLocalUserId

        @Deprecated(since="6.2.0")
        public static java.lang.String getOpenIdLocalUserId​(org.springframework.webflow.execution.RequestContext context)
        Deprecated.
        Since 6.2.0
        Gets 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 context
        provider - 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 context
        mfaProviders - 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 context
        account - 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 context
        accounts - 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 context
        clazz - 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 context
        enabled - 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 context
        enabled - the enabled
      • putSingleLogoutRequest

        public static void putSingleLogoutRequest​(javax.servlet.http.HttpServletRequest request,
                                                  java.lang.String logoutRequest)
        Put single logout request.
        Parameters:
        request - the request
        logoutRequest - 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 context
        clientName - 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 context
        authorizedServices - 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 context
        sessions - 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 context
        properties - 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 context
        recaptcha - 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 context
        token - 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 context
        clazz - 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 context
        servicesManager - the services manager
        serviceSelectionStrategy - 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 context
        code - the code
        defaultText - the default text
        args - 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 context
        code - the code
        defaultText - 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 context
        code - 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 context
        code - the code
        defaultText - the default text
        args - 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 context
        code - 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 context
        postUrl - 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 context
        postData - 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 context
        policyPattern - 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 context
        clients - 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 context
        clazz - 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 context
        accounts - 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 context
        disabled - 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 context
        candidateMatches - 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 context
        clazz - 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 context
        clazz - 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 context
        profile - the profile