Uses of Interface
org.pac4j.core.context.WebContext
-
-
Uses of WebContext in org.pac4j.core.authorization.authorizer
Methods in org.pac4j.core.authorization.authorizer with parameters of type WebContext Modifier and Type Method Description protected abstract boolean
AbstractRequireElementAuthorizer. check(WebContext context, SessionStore sessionStore, UserProfile profile, E element)
Check a specific element.protected boolean
CheckHttpMethodAuthorizer. check(WebContext context, SessionStore sessionStore, UserProfile profile, HttpConstants.HTTP_METHOD element)
protected boolean
CheckProfileTypeAuthorizer. check(WebContext context, SessionStore sessionStore, UserProfile profile, java.lang.Class element)
protected boolean
RequireAllPermissionsAuthorizer. check(WebContext context, SessionStore sessionStore, UserProfile profile, java.lang.String element)
protected boolean
RequireAllRolesAuthorizer. check(WebContext context, SessionStore sessionStore, UserProfile profile, java.lang.String element)
protected boolean
RequireAnyAttributeAuthorizer. check(WebContext context, SessionStore sessionStore, UserProfile profile, java.lang.String element)
protected boolean
RequireAnyPermissionAuthorizer. check(WebContext context, SessionStore sessionStore, UserProfile profile, java.lang.String element)
protected boolean
RequireAnyRoleAuthorizer. check(WebContext context, SessionStore sessionStore, UserProfile profile, java.lang.String element)
protected boolean
AbstractCheckAuthenticationAuthorizer. handleError(WebContext context, SessionStore sessionStore)
protected boolean
ProfileAuthorizer. handleError(WebContext context, SessionStore sessionStore)
Handle the error.boolean
ProfileAuthorizer. isAllAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
If all profiles are authorized.boolean
ProfileAuthorizer. isAnyAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
If any of the profiles is authorized.boolean
AbstractRequireElementAuthorizer. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
boolean
AndAuthorizer. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
boolean
Authorizer. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
Checks if the user profiles and / or the current web context are authorized.boolean
CsrfAuthorizer. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
boolean
IsAnonymousAuthorizer. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
boolean
IsAuthenticatedAuthorizer. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
boolean
IsFullyAuthenticatedAuthorizer. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
boolean
IsRememberedAuthorizer. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
boolean
OrAuthorizer. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
protected boolean
AbstractRequireAllAuthorizer. isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile)
protected boolean
AbstractRequireAnyAuthorizer. isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile)
boolean
IsAnonymousAuthorizer. isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile)
boolean
IsAuthenticatedAuthorizer. isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile)
boolean
IsFullyAuthenticatedAuthorizer. isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile)
boolean
IsRememberedAuthorizer. isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile)
protected abstract boolean
ProfileAuthorizer. isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile)
Whether a specific profile is authorized. -
Uses of WebContext in org.pac4j.core.authorization.checker
Methods in org.pac4j.core.authorization.checker with parameters of type WebContext Modifier and Type Method Description protected java.util.List<Authorizer>
DefaultAuthorizationChecker. computeAuthorizers(WebContext context, java.util.List<UserProfile> profiles, java.lang.String authorizersValue, java.util.Map<java.lang.String,Authorizer> authorizersMap, java.util.List<Client> clients)
protected java.util.List<Authorizer>
DefaultAuthorizationChecker. computeDefaultAuthorizers(WebContext context, java.util.List<UserProfile> profiles, java.util.List<Client> clients, java.util.Map<java.lang.String,Authorizer> authorizersMap)
boolean
AuthorizationChecker. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles, java.lang.String authorizerNames, java.util.Map<java.lang.String,Authorizer> authorizersMap, java.util.List<Client> clients)
Check whether the user is authorized.boolean
DefaultAuthorizationChecker. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles, java.lang.String authorizersValue, java.util.Map<java.lang.String,Authorizer> authorizersMap, java.util.List<Client> clients)
protected boolean
DefaultAuthorizationChecker. isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles, java.util.List<Authorizer> authorizers)
-
Uses of WebContext in org.pac4j.core.authorization.generator
Methods in org.pac4j.core.authorization.generator with parameters of type WebContext Modifier and Type Method Description java.util.Optional<UserProfile>
AuthorizationGenerator. generate(WebContext context, SessionStore sessionStore, UserProfile profile)
Generate the authorization information from and for the user profile.java.util.Optional<UserProfile>
DefaultRolesPermissionsAuthorizationGenerator. generate(WebContext context, SessionStore sessionStore, UserProfile profile)
java.util.Optional<UserProfile>
FromAttributesAuthorizationGenerator. generate(WebContext context, SessionStore sessionStore, UserProfile profile)
java.util.Optional<UserProfile>
LoadLinkedUserAuthorizationGenerator. generate(WebContext context, SessionStore sessionStore, UserProfile profile)
java.util.Optional<UserProfile>
SpringSecurityPropertiesAuthorizationGenerator. generate(WebContext context, SessionStore sessionStore, UserProfile profile)
-
Uses of WebContext in org.pac4j.core.client
Methods in org.pac4j.core.client with parameters of type WebContext Modifier and Type Method Description java.lang.String
IndirectClient. computeFinalCallbackUrl(WebContext context)
java.util.Optional<Credentials>
Client. getCredentials(WebContext context, SessionStore sessionStore)
Get the credentials from the web context.java.util.Optional<Credentials>
DirectClient. getCredentials(WebContext context, SessionStore sessionStore)
java.util.Optional<Credentials>
IndirectClient. getCredentials(WebContext context, SessionStore sessionStore)
Get the credentials from the web context.java.util.Optional<RedirectionAction>
Client. getLogoutAction(WebContext context, SessionStore sessionStore, UserProfile currentProfile, java.lang.String targetUrl)
Return the logout action (indirect clients).java.util.Optional<RedirectionAction>
DirectClient. getLogoutAction(WebContext context, SessionStore sessionStore, UserProfile currentProfile, java.lang.String targetUrl)
java.util.Optional<RedirectionAction>
IndirectClient. getLogoutAction(WebContext context, SessionStore sessionStore, UserProfile currentProfile, java.lang.String targetUrl)
java.util.Optional<RedirectionAction>
Client. getRedirectionAction(WebContext context, SessionStore sessionStore)
Return the redirection action to the authentication provider (indirect clients).java.util.Optional<RedirectionAction>
DirectClient. getRedirectionAction(WebContext context, SessionStore sessionStore)
java.util.Optional<RedirectionAction>
IndirectClient. getRedirectionAction(WebContext context, SessionStore sessionStore)
If an authentication has already been tried for this client and has failed (null
credentials) or if the request is an AJAX one, an unauthorized response is thrown instead of a "redirection".java.lang.Boolean
BaseClient. getSaveProfileInSession(WebContext context, UserProfile profile)
java.util.Optional<UserProfile>
BaseClient. getUserProfile(Credentials credentials, WebContext context, SessionStore sessionStore)
java.util.Optional<UserProfile>
Client. getUserProfile(Credentials credentials, WebContext context, SessionStore sessionStore)
Get the user profile based on the provided credentials.boolean
BaseClient. isMultiProfile(WebContext context, UserProfile profile)
void
BaseClient. notifySessionRenewal(java.lang.String oldSessionId, WebContext context, SessionStore sessionStore)
Notify of the web session renewal.java.util.Optional<UserProfile>
BaseClient. renewUserProfile(UserProfile profile, WebContext context, SessionStore sessionStore)
java.util.Optional<UserProfile>
Client. renewUserProfile(UserProfile profile, WebContext context, SessionStore sessionStore)
Renew the user profile.protected java.util.Optional<Credentials>
BaseClient. retrieveCredentials(WebContext context, SessionStore sessionStore)
Retrieve the credentials.protected java.util.Optional<UserProfile>
BaseClient. retrieveUserProfile(Credentials credentials, WebContext context, SessionStore sessionStore)
Retrieve a user profile. -
Uses of WebContext in org.pac4j.core.client.finder
Methods in org.pac4j.core.client.finder with parameters of type WebContext Modifier and Type Method Description java.util.List<Client>
ClientFinder. find(Clients clients, WebContext context, java.lang.String clientNames)
java.util.List<Client>
DefaultCallbackClientFinder. find(Clients clients, WebContext context, java.lang.String clientNames)
java.util.List<Client>
DefaultSecurityClientFinder. find(Clients clients, WebContext context, java.lang.String clientNames)
-
Uses of WebContext in org.pac4j.core.context
Methods in org.pac4j.core.context that return WebContext Modifier and Type Method Description WebContext
WebContextFactory. newContext(java.lang.Object... parameters)
Methods in org.pac4j.core.context with parameters of type WebContext Modifier and Type Method Description static Cookie
WebContextHelper. getCookie(WebContext context, java.lang.String name)
Get a specific cookie by its name.static boolean
WebContextHelper. isDelete(WebContext context)
Whether it is a DELETE request.static boolean
WebContextHelper. isGet(WebContext context)
Whether it is a GET request.static boolean
WebContextHelper. isHttp(WebContext context)
Whether the request is HTTP.static boolean
WebContextHelper. isHttps(WebContext context)
Whether the request is HTTPS.static boolean
WebContextHelper. isHttpsOrSecure(WebContext context)
Whether the request is HTTPS or secure.static boolean
WebContextHelper. isPatch(WebContext context)
Whether it is a PATCH request.static boolean
WebContextHelper. isPost(WebContext context)
Whether it is a POST request.static boolean
WebContextHelper. isPut(WebContext context)
Whether it is a PUT request. -
Uses of WebContext in org.pac4j.core.context.session
Methods in org.pac4j.core.context.session with parameters of type WebContext Modifier and Type Method Description java.util.Optional<SessionStore>
SessionStore. buildFromTrackableSession(WebContext context, java.lang.Object trackableSession)
Build a new session store from a trackable session.boolean
SessionStore. destroySession(WebContext context)
Destroy the web session.java.util.Optional<java.lang.Object>
SessionStore. get(WebContext context, java.lang.String key)
Get the object from its key in store.java.util.Optional<java.lang.String>
SessionStore. getSessionId(WebContext context, boolean createSession)
Get or create the session identifier and initialize the session with it if necessary.java.util.Optional<java.lang.Object>
SessionStore. getTrackableSession(WebContext context)
Get the native session as a trackable object.boolean
SessionStore. renewSession(WebContext context)
Renew the native session by copying all data to a new one.void
SessionStore. set(WebContext context, java.lang.String key, java.lang.Object value)
Save an object in the store by its key. -
Uses of WebContext in org.pac4j.core.credentials.authenticator
Methods in org.pac4j.core.credentials.authenticator with parameters of type WebContext Modifier and Type Method Description void
Authenticator. validate(Credentials credentials, WebContext context, SessionStore sessionStore)
Validate the credentials.void
LocalCachingAuthenticator. validate(Credentials credentials, WebContext context, SessionStore sessionStore)
-
Uses of WebContext in org.pac4j.core.credentials.extractor
Methods in org.pac4j.core.credentials.extractor with parameters of type WebContext Modifier and Type Method Description java.util.Optional<Credentials>
BasicAuthExtractor. extract(WebContext context, SessionStore sessionStore)
java.util.Optional<Credentials>
BearerAuthExtractor. extract(WebContext context, SessionStore sessionStore)
java.util.Optional<Credentials>
CredentialsExtractor. extract(WebContext context, SessionStore sessionStore)
Extract theCredentials
from aWebContext
and returnOptional.empty()
if no credentials are present or throw aCredentialsException
if it cannot get it.java.util.Optional<Credentials>
FormExtractor. extract(WebContext context, SessionStore sessionStore)
java.util.Optional<Credentials>
HeaderExtractor. extract(WebContext context, SessionStore sessionStore)
java.util.Optional<Credentials>
ParameterExtractor. extract(WebContext context, SessionStore sessionStore)
-
Uses of WebContext in org.pac4j.core.engine
Methods in org.pac4j.core.engine with parameters of type WebContext Modifier and Type Method Description java.lang.Object
SecurityGrantedAccessAdapter. adapt(WebContext context, SessionStore sessionStore, java.util.Collection<UserProfile> profiles, java.lang.Object... parameters)
Adapt the current successful action as the expected result.protected HttpAction
DefaultSecurityLogic. forbidden(WebContext context, SessionStore sessionStore, java.util.List<Client> currentClients, java.util.List<UserProfile> profiles, java.lang.String authorizers)
Return a forbidden error.protected java.lang.Object
AbstractExceptionAwareLogic. handleException(java.lang.Exception e, HttpActionAdapter httpActionAdapter, WebContext context)
Handle exceptions.protected java.util.List<UserProfile>
DefaultSecurityLogic. loadProfiles(ProfileManager manager, WebContext context, SessionStore sessionStore, java.util.List<Client> clients)
Load the profiles.java.lang.Object
CallbackLogic. perform(WebContext webContext, SessionStore sessionStore, Config config, HttpActionAdapter httpActionAdapter, java.lang.String defaultUrl, java.lang.Boolean renewSession, java.lang.String defaultClient)
Perform the callback logic.java.lang.Object
DefaultCallbackLogic. perform(WebContext webContext, SessionStore sessionStore, Config config, HttpActionAdapter httpActionAdapter, java.lang.String inputDefaultUrl, java.lang.Boolean inputRenewSession, java.lang.String defaultClient)
java.lang.Object
DefaultLogoutLogic. perform(WebContext context, SessionStore sessionStore, Config config, HttpActionAdapter httpActionAdapter, java.lang.String defaultUrl, java.lang.String inputLogoutUrlPattern, java.lang.Boolean inputLocalLogout, java.lang.Boolean inputDestroySession, java.lang.Boolean inputCentralLogout)
java.lang.Object
DefaultSecurityLogic. perform(WebContext context, SessionStore sessionStore, Config config, SecurityGrantedAccessAdapter securityGrantedAccessAdapter, HttpActionAdapter httpActionAdapter, java.lang.String clients, java.lang.String authorizers, java.lang.String matchers, java.lang.Object... parameters)
java.lang.Object
LogoutLogic. perform(WebContext context, SessionStore sessionStore, Config config, HttpActionAdapter httpActionAdapter, java.lang.String defaultUrl, java.lang.String logoutUrlPattern, java.lang.Boolean localLogout, java.lang.Boolean destroySession, java.lang.Boolean centralLogout)
Perform the application logout logic.java.lang.Object
SecurityLogic. perform(WebContext context, SessionStore sessionStore, Config config, SecurityGrantedAccessAdapter securityGrantedAccessAdapter, HttpActionAdapter httpActionAdapter, java.lang.String clients, java.lang.String authorizers, java.lang.String matchers, java.lang.Object... parameters)
Perform the security logic.protected HttpAction
DefaultSecurityLogic. redirectToIdentityProvider(WebContext context, SessionStore sessionStore, java.util.List<Client> currentClients)
Perform a redirection to start the login process of the first indirect client.protected HttpAction
DefaultCallbackLogic. redirectToOriginallyRequestedUrl(WebContext context, SessionStore sessionStore, java.lang.String defaultUrl)
protected void
DefaultCallbackLogic. renewSession(WebContext context, SessionStore sessionStore, Config config)
protected void
DefaultSecurityLogic. saveRequestedUrl(WebContext context, SessionStore sessionStore, java.util.List<Client> currentClients, AjaxRequestResolver ajaxRequestResolver)
Save the requested url.protected void
DefaultCallbackLogic. saveUserProfile(WebContext context, SessionStore sessionStore, Config config, UserProfile profile, boolean saveProfileInSession, boolean multiProfile, boolean renewSession)
protected boolean
DefaultSecurityLogic. startAuthentication(WebContext context, SessionStore sessionStore, java.util.List<Client> currentClients)
Return whether we must start a login process if the first client is an indirect one.protected HttpAction
DefaultSecurityLogic. unauthorized(WebContext context, SessionStore sessionStore, java.util.List<Client> currentClients)
Return an unauthorized error. -
Uses of WebContext in org.pac4j.core.engine.savedrequest
Methods in org.pac4j.core.engine.savedrequest with parameters of type WebContext Modifier and Type Method Description protected java.lang.String
DefaultSavedRequestHandler. getRequestedUrl(WebContext context, SessionStore sessionStore)
HttpAction
DefaultSavedRequestHandler. restore(WebContext context, SessionStore sessionStore, java.lang.String defaultUrl)
HttpAction
SavedRequestHandler. restore(WebContext webContext, SessionStore sessionStore, java.lang.String defaultUrl)
Restore the saved request.void
DefaultSavedRequestHandler. save(WebContext context, SessionStore sessionStore)
void
SavedRequestHandler. save(WebContext webContext, SessionStore sessionStore)
Saves the current web context. -
Uses of WebContext in org.pac4j.core.http.adapter
Methods in org.pac4j.core.http.adapter with parameters of type WebContext Modifier and Type Method Description java.lang.Object
HttpActionAdapter. adapt(HttpAction action, WebContext context)
Adapt the HTTP action. -
Uses of WebContext in org.pac4j.core.http.ajax
Methods in org.pac4j.core.http.ajax with parameters of type WebContext Modifier and Type Method Description HttpAction
AjaxRequestResolver. buildAjaxResponse(WebContext context, SessionStore sessionStore, RedirectionActionBuilder redirectionActionBuilder)
Build an AJAX reponse.HttpAction
DefaultAjaxRequestResolver. buildAjaxResponse(WebContext context, SessionStore sessionStore, RedirectionActionBuilder redirectionActionBuilder)
boolean
AjaxRequestResolver. isAjax(WebContext context, SessionStore sessionStore)
Whether it is an AJAX request.boolean
DefaultAjaxRequestResolver. isAjax(WebContext context, SessionStore sessionStore)
-
Uses of WebContext in org.pac4j.core.http.callback
Methods in org.pac4j.core.http.callback with parameters of type WebContext Modifier and Type Method Description java.lang.String
CallbackUrlResolver. compute(UrlResolver urlResolver, java.lang.String url, java.lang.String clientName, WebContext context)
Compute a callback URL from the provided URL resolver, URL, client name and web context.java.lang.String
NoParameterCallbackUrlResolver. compute(UrlResolver urlResolver, java.lang.String url, java.lang.String clientName, WebContext context)
java.lang.String
PathParameterCallbackUrlResolver. compute(UrlResolver urlResolver, java.lang.String url, java.lang.String clientName, WebContext context)
java.lang.String
QueryParameterCallbackUrlResolver. compute(UrlResolver urlResolver, java.lang.String url, java.lang.String clientName, WebContext context)
boolean
CallbackUrlResolver. matches(java.lang.String clientName, WebContext context)
Whether the current context matches the client name.boolean
NoParameterCallbackUrlResolver. matches(java.lang.String clientName, WebContext context)
boolean
PathParameterCallbackUrlResolver. matches(java.lang.String clientName, WebContext context)
boolean
QueryParameterCallbackUrlResolver. matches(java.lang.String clientName, WebContext context)
-
Uses of WebContext in org.pac4j.core.http.url
Methods in org.pac4j.core.http.url with parameters of type WebContext Modifier and Type Method Description java.lang.String
DefaultUrlResolver. compute(java.lang.String url, WebContext context)
java.lang.String
UrlResolver. compute(java.lang.String url, WebContext context)
Compute a new URL from the provided URL and the web context. -
Uses of WebContext in org.pac4j.core.logout
Methods in org.pac4j.core.logout with parameters of type WebContext Modifier and Type Method Description java.util.Optional<RedirectionAction>
CasLogoutActionBuilder. getLogoutAction(WebContext context, SessionStore sessionStore, UserProfile currentProfile, java.lang.String targetUrl)
java.util.Optional<RedirectionAction>
GoogleLogoutActionBuilder. getLogoutAction(WebContext context, SessionStore sessionStore, UserProfile currentProfile, java.lang.String targetUrl)
java.util.Optional<RedirectionAction>
LogoutActionBuilder. getLogoutAction(WebContext context, SessionStore sessionStore, UserProfile currentProfile, java.lang.String targetUrl)
Return theRedirectionAction
for logout.java.util.Optional<RedirectionAction>
NoLogoutActionBuilder. getLogoutAction(WebContext context, SessionStore sessionStore, UserProfile currentProfile, java.lang.String targetUrl)
-
Uses of WebContext in org.pac4j.core.logout.handler
Methods in org.pac4j.core.logout.handler with parameters of type WebContext Modifier and Type Method Description protected void
DefaultLogoutHandler. destroy(WebContext context, SessionStore sessionStore, java.lang.String channel)
void
DefaultLogoutHandler. destroySessionBack(WebContext context, SessionStore sessionStore, java.lang.String key)
default void
LogoutHandler. destroySessionBack(WebContext context, SessionStore sessionStore, java.lang.String key)
Destroys the current web session for the given key for a back channel logout.void
DefaultLogoutHandler. destroySessionFront(WebContext context, SessionStore sessionStore, java.lang.String key)
default void
LogoutHandler. destroySessionFront(WebContext context, SessionStore sessionStore, java.lang.String key)
Destroys the current web session for the given key for a front channel logout.void
DefaultLogoutHandler. recordSession(WebContext context, SessionStore sessionStore, java.lang.String key)
default void
LogoutHandler. recordSession(WebContext context, SessionStore sessionStore, java.lang.String key)
Associates a key with the current web session.void
DefaultLogoutHandler. renewSession(java.lang.String oldSessionId, WebContext context, SessionStore sessionStore)
default void
LogoutHandler. renewSession(java.lang.String oldSessionId, WebContext context, SessionStore sessionStore)
Renew the web session. -
Uses of WebContext in org.pac4j.core.matching.checker
Methods in org.pac4j.core.matching.checker with parameters of type WebContext Modifier and Type Method Description protected java.util.List<Matcher>
DefaultMatchingChecker. computeDefaultMatchers(WebContext context, SessionStore sessionStore, java.util.List<Client> clients)
protected java.util.List<Matcher>
DefaultMatchingChecker. computeMatchers(WebContext context, SessionStore sessionStore, java.lang.String matchersValue, java.util.Map<java.lang.String,Matcher> matchersMap, java.util.List<Client> clients)
boolean
DefaultMatchingChecker. matches(WebContext context, SessionStore sessionStore, java.lang.String matchersValue, java.util.Map<java.lang.String,Matcher> matchersMap, java.util.List<Client> clients)
protected boolean
DefaultMatchingChecker. matches(WebContext context, SessionStore sessionStore, java.util.List<Matcher> matchers)
boolean
MatchingChecker. matches(WebContext context, SessionStore sessionStore, java.lang.String matcherNames, java.util.Map<java.lang.String,Matcher> matchersMap, java.util.List<Client> clients)
Check if the web context matches. -
Uses of WebContext in org.pac4j.core.matching.matcher
Methods in org.pac4j.core.matching.matcher with parameters of type WebContext Modifier and Type Method Description boolean
CacheControlMatcher. matches(WebContext context, SessionStore sessionStore)
boolean
CorsMatcher. matches(WebContext context, SessionStore sessionStore)
boolean
HeaderMatcher. matches(WebContext context, SessionStore sessionStore)
boolean
HttpMethodMatcher. matches(WebContext context, SessionStore sessionStore)
boolean
Matcher. matches(WebContext context, SessionStore sessionStore)
Check if the web context matches.boolean
PathMatcher. matches(WebContext context, SessionStore sessionStore)
boolean
StrictTransportSecurityMatcher. matches(WebContext context, SessionStore sessionStore)
boolean
XContentTypeOptionsMatcher. matches(WebContext context, SessionStore sessionStore)
boolean
XFrameOptionsMatcher. matches(WebContext context, SessionStore sessionStore)
boolean
XSSProtectionMatcher. matches(WebContext context, SessionStore sessionStore)
-
Uses of WebContext in org.pac4j.core.matching.matcher.csrf
Methods in org.pac4j.core.matching.matcher.csrf with parameters of type WebContext Modifier and Type Method Description java.lang.String
CsrfTokenGenerator. get(WebContext context, SessionStore sessionStore)
Get the CSRF token from the session or create it if it doesn't exist.java.lang.String
DefaultCsrfTokenGenerator. get(WebContext context, SessionStore sessionStore)
boolean
CsrfTokenGeneratorMatcher. matches(WebContext context, SessionStore sessionStore)
-
Uses of WebContext in org.pac4j.core.profile
Fields in org.pac4j.core.profile declared as WebContext Modifier and Type Field Description protected WebContext
ProfileManager. context
Constructors in org.pac4j.core.profile with parameters of type WebContext Constructor Description ProfileManager(WebContext context, SessionStore sessionStore)
-
Uses of WebContext in org.pac4j.core.profile.creator
Methods in org.pac4j.core.profile.creator with parameters of type WebContext Modifier and Type Method Description java.util.Optional<UserProfile>
AuthenticatorProfileCreator. create(Credentials credentials, WebContext context, SessionStore sessionStore)
java.util.Optional<UserProfile>
ProfileCreator. create(Credentials credentials, WebContext context, SessionStore sessionStore)
Create a profile from a credentials. -
Uses of WebContext in org.pac4j.core.profile.factory
Methods in org.pac4j.core.profile.factory with parameters of type WebContext Modifier and Type Method Description protected ProfileManager
ProfileManagerFactoryAware. getProfileManager(WebContext context, SessionStore sessionStore)
-
Uses of WebContext in org.pac4j.core.profile.service
Methods in org.pac4j.core.profile.service with parameters of type WebContext Modifier and Type Method Description void
AbstractProfileService. validate(Credentials cred, WebContext context, SessionStore sessionStore)
-
Uses of WebContext in org.pac4j.core.redirect
Methods in org.pac4j.core.redirect with parameters of type WebContext Modifier and Type Method Description java.util.Optional<RedirectionAction>
RedirectionActionBuilder. getRedirectionAction(WebContext context, SessionStore sessionStore)
Return the appropriate "redirection" action. -
Uses of WebContext in org.pac4j.core.util
Methods in org.pac4j.core.util with parameters of type WebContext Modifier and Type Method Description static java.lang.String
HttpActionHelper. buildFormPostContent(WebContext context)
Build a form POST content from the web context.static RedirectionAction
HttpActionHelper. buildFormPostContentAction(WebContext context, java.lang.String content)
Build the appropriate redirection action for a content which is a form post.static RedirectionAction
HttpActionHelper. buildRedirectUrlAction(WebContext context, java.lang.String location)
Build the appropriate redirection action for a location.static HttpAction
HttpActionHelper. buildUnauthenticatedAction(WebContext context)
Build the action for unauthenticated users. -
Uses of WebContext in org.pac4j.core.util.generator
Methods in org.pac4j.core.util.generator with parameters of type WebContext Modifier and Type Method Description java.lang.String
RandomValueGenerator. generateValue(WebContext webContext, SessionStore sessionStore)
java.lang.String
StaticValueGenerator. generateValue(WebContext webContext, SessionStore sessionStore)
java.lang.String
ValueGenerator. generateValue(WebContext webContext, SessionStore sessionStore)
-