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, U profile, E element)
Check a specific element.protected boolean
CheckHttpMethodAuthorizer. check(WebContext context, UserProfile profile, HttpConstants.HTTP_METHOD element)
protected boolean
CheckProfileTypeAuthorizer. check(WebContext context, U profile, Class<U> element)
protected boolean
RequireAllPermissionsAuthorizer. check(WebContext context, U profile, String element)
protected boolean
RequireAllRolesAuthorizer. check(WebContext context, U profile, String element)
protected boolean
RequireAnyAttributeAuthorizer. check(WebContext context, U profile, String element)
protected boolean
RequireAnyPermissionAuthorizer. check(WebContext context, U profile, String element)
protected boolean
RequireAnyRoleAuthorizer. check(WebContext context, U profile, String element)
protected boolean
AbstractCheckAuthenticationAuthorizer. handleError(WebContext context)
protected boolean
ProfileAuthorizer. handleError(WebContext context)
Handle the error.boolean
ProfileAuthorizer. isAllAuthorized(WebContext context, List<U> profiles)
If all profiles are authorized.boolean
ProfileAuthorizer. isAnyAuthorized(WebContext context, List<U> profiles)
If any of the profiles is authorized.boolean
AbstractRequireElementAuthorizer. isAuthorized(WebContext context, List<U> profiles)
boolean
AndAuthorizer. isAuthorized(WebContext context, List<U> profiles)
boolean
Authorizer. isAuthorized(WebContext context, List<U> profiles)
Checks if the user profiles and / or the current web context are authorized.boolean
CacheControlHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
CorsAuthorizer. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
IsAnonymousAuthorizer. isAuthorized(WebContext context, List<U> profiles)
boolean
IsAuthenticatedAuthorizer. isAuthorized(WebContext context, List<U> profiles)
boolean
IsFullyAuthenticatedAuthorizer. isAuthorized(WebContext context, List<U> profiles)
boolean
IsRememberedAuthorizer. isAuthorized(WebContext context, List<U> profiles)
boolean
OrAuthorizer. isAuthorized(WebContext context, List<U> profiles)
boolean
StrictTransportSecurityHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
XContentTypeOptionsHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
XFrameOptionsHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
XSSProtectionHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
protected boolean
AbstractRequireAllAuthorizer. isProfileAuthorized(WebContext context, U profile)
protected boolean
AbstractRequireAnyAuthorizer. isProfileAuthorized(WebContext context, U profile)
boolean
IsAnonymousAuthorizer. isProfileAuthorized(WebContext context, U profile)
boolean
IsAuthenticatedAuthorizer. isProfileAuthorized(WebContext context, U profile)
boolean
IsFullyAuthenticatedAuthorizer. isProfileAuthorized(WebContext context, U profile)
boolean
IsRememberedAuthorizer. isProfileAuthorized(WebContext context, U profile)
protected abstract boolean
ProfileAuthorizer. isProfileAuthorized(WebContext context, U profile)
Whether a specific profile is authorized. -
Uses of WebContext in org.pac4j.core.authorization.authorizer.csrf
Methods in org.pac4j.core.authorization.authorizer.csrf with parameters of type WebContext Modifier and Type Method Description String
CsrfTokenGenerator. get(WebContext context)
Get the CSRF token from the session or create it if it doesn't exist.String
DefaultCsrfTokenGenerator. get(WebContext context)
protected Optional<String>
DefaultCsrfTokenGenerator. getTokenFromSession(WebContext context)
boolean
CsrfAuthorizer. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
CsrfTokenGeneratorAuthorizer. isAuthorized(WebContext context, List<UserProfile> profiles)
-
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 boolean
AuthorizationChecker. isAuthorized(WebContext context, List<UserProfile> profiles, String authorizerNames, Map<String,Authorizer> authorizersMap)
Check whether the user is authorized.boolean
DefaultAuthorizationChecker. isAuthorized(WebContext context, List<UserProfile> profiles, String authorizersValue, Map<String,Authorizer> authorizersMap)
protected boolean
DefaultAuthorizationChecker. isAuthorized(WebContext context, List<UserProfile> profiles, 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 Optional<UserProfile>
AuthorizationGenerator. generate(WebContext context, UserProfile profile)
Generate the authorization information from and for the user profile.Optional<UserProfile>
DefaultRolesPermissionsAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Optional<UserProfile>
FromAttributesAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Optional<UserProfile>
LoadLinkedUserAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Optional<UserProfile>
SpringSecurityPropertiesAuthorizationGenerator. generate(WebContext context, 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 String
IndirectClient. computeFinalCallbackUrl(WebContext context)
Optional<C>
Client. getCredentials(WebContext context)
Get the credentials from the web context.Optional<C>
DirectClient. getCredentials(WebContext context)
Optional<C>
IndirectClient. getCredentials(WebContext context)
Get the credentials from the web context.Optional<RedirectionAction>
Client. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Return the logout action (indirect clients).Optional<RedirectionAction>
DirectClient. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Optional<RedirectionAction>
IndirectClient. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Optional<RedirectionAction>
Client. getRedirectionAction(WebContext context)
Return the redirection action to the authentication provider (indirect clients).Optional<RedirectionAction>
DirectClient. getRedirectionAction(WebContext context)
Optional<RedirectionAction>
IndirectClient. getRedirectionAction(WebContext context)
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".Optional<UserProfile>
BaseClient. getUserProfile(C credentials, WebContext context)
Optional<UserProfile>
Client. getUserProfile(C credentials, WebContext context)
Get the user profile based on the provided credentials.void
BaseClient. notifySessionRenewal(String oldSessionId, WebContext context)
Notify of the web session renewal.Optional<UserProfile>
BaseClient. renewUserProfile(UserProfile profile, WebContext context)
Optional<UserProfile>
Client. renewUserProfile(UserProfile profile, WebContext context)
Renew the user profile.protected Optional<C>
BaseClient. retrieveCredentials(WebContext context)
Retrieve the credentials.protected Optional<UserProfile>
BaseClient. retrieveUserProfile(C credentials, WebContext context)
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 List<Client>
ClientFinder. find(Clients clients, WebContext context, String clientNames)
List<Client>
DefaultCallbackClientFinder. find(Clients clients, WebContext context, String clientNames)
List<Client>
DefaultSecurityClientFinder. find(Clients clients, WebContext context, String clientNames)
-
Uses of WebContext in org.pac4j.core.config
Methods in org.pac4j.core.config that return types with arguments of type WebContext Modifier and Type Method Description static Function<WebContext,ProfileManager>
Config. getProfileManagerFactory()
static BiFunction<WebContext,SessionStore,ProfileManager>
Config. getProfileManagerFactory2()
Method parameters in org.pac4j.core.config with type arguments of type WebContext Modifier and Type Method Description static void
Config. defaultProfileManagerFactory(String name, Function<WebContext,ProfileManager> profileManagerFactory)
static void
Config. defaultProfileManagerFactory2(String name, BiFunction<WebContext,SessionStore,ProfileManager> profileManagerFactory2)
static void
Config. setProfileManagerFactory(String name, Function<WebContext,ProfileManager> profileManagerFactory)
static void
Config. setProfileManagerFactory2(String name, BiFunction<WebContext,SessionStore,ProfileManager> profileManagerFactory2)
-
Uses of WebContext in org.pac4j.core.context
Classes in org.pac4j.core.context that implement WebContext Modifier and Type Class Description class
JEEContext
This implementation uses the JEEHttpServletRequest
andHttpServletResponse
.Methods in org.pac4j.core.context with parameters of type WebContext Modifier and Type Method Description static Cookie
ContextHelper. getCookie(WebContext context, String name)
Get a specific cookie by its name.static boolean
ContextHelper. isDelete(WebContext context)
Whether it is a DELETE request.static boolean
ContextHelper. isGet(WebContext context)
Whether it is a GET request.static boolean
ContextHelper. isHttp(WebContext context)
Whether the request is HTTP.static boolean
ContextHelper. isHttps(WebContext context)
Whether the request is HTTPS.static boolean
ContextHelper. isHttpsOrSecure(WebContext context)
Whether the request is HTTPS or secure.static boolean
ContextHelper. isPatch(WebContext context)
Whether it is a PATCH request.static boolean
ContextHelper. isPost(WebContext context)
Whether it is a POST request.static boolean
ContextHelper. isPut(WebContext context)
Whether it is a PUT request. -
Uses of WebContext in org.pac4j.core.context.session
Classes in org.pac4j.core.context.session with type parameters of type WebContext Modifier and Type Interface Description interface
SessionStore<C extends WebContext>
To store data in session. -
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(C credentials, WebContext context)
Validate the credentials.void
LocalCachingAuthenticator. validate(T credentials, WebContext context)
-
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 Optional<UsernamePasswordCredentials>
BasicAuthExtractor. extract(WebContext context)
Optional<TokenCredentials>
BearerAuthExtractor. extract(WebContext context)
Optional<C>
CredentialsExtractor. extract(WebContext context)
Extract theCredentials
from aWebContext
and returnOptional.empty()
if no credentials are present or throw aCredentialsException
if it cannot get it.Optional<UsernamePasswordCredentials>
FormExtractor. extract(WebContext context)
Optional<TokenCredentials>
HeaderExtractor. extract(WebContext context)
Optional<TokenCredentials>
ParameterExtractor. extract(WebContext context)
-
Uses of WebContext in org.pac4j.core.engine
Classes in org.pac4j.core.engine with type parameters of type WebContext Modifier and Type Class Description class
AbstractExceptionAwareLogic<R,C extends WebContext>
Abstract logic to handle exceptions:interface
CallbackLogic<R,C extends WebContext>
Callback logic to finish the login process for an indirect client.class
DefaultCallbackLogic<R,C extends WebContext>
Default callback logic:class
DefaultLogoutLogic<R,C extends WebContext>
Default logout logic:class
DefaultSecurityLogic<R,C extends WebContext>
Default security logic:interface
LogoutLogic<R,C extends WebContext>
Logout logic for the application and the identity provider.interface
SecurityGrantedAccessAdapter<R,C extends WebContext>
Success adapter.interface
SecurityLogic<R,C extends WebContext>
Security logic to protect an url. -
Uses of WebContext in org.pac4j.core.engine.decision
Classes in org.pac4j.core.engine.decision with type parameters of type WebContext Modifier and Type Class Description class
AlwaysUseSessionProfileStorageDecision<C extends WebContext>
A decision class where the session is always used, generally when indirect and direct clients are mixed in the same web application.class
DefaultProfileStorageDecision<C extends WebContext>
Default decision class where the indirect clients are handled separately from the direct clients.interface
ProfileStorageDecision<C extends WebContext>
Defines the decisions related to load/save the profile(s) from/into the session store. -
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 HttpAction
DefaultSavedRequestHandler. restore(WebContext context, String defaultUrl)
HttpAction
SavedRequestHandler. restore(WebContext webContext, String defaultUrl)
Restore the saved request.void
DefaultSavedRequestHandler. save(WebContext context)
void
SavedRequestHandler. save(WebContext webContext)
Saves the current web context. -
Uses of WebContext in org.pac4j.core.exception.http
Methods in org.pac4j.core.exception.http with parameters of type WebContext Modifier and Type Method Description static String
RedirectionActionHelper. buildFormPostContent(WebContext context)
Build a form POST content from the web context.static RedirectionAction
RedirectionActionHelper. buildFormPostContentAction(WebContext context, String content)
Build the appropriate redirection action for a content which is a form post.static RedirectionAction
RedirectionActionHelper. buildRedirectUrlAction(WebContext context, String location)
Build the appropriate redirection action for a location. -
Uses of WebContext in org.pac4j.core.http.adapter
Classes in org.pac4j.core.http.adapter with type parameters of type WebContext Modifier and Type Interface Description interface
HttpActionAdapter<R,C extends WebContext>
HTTP action adapter. -
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, RedirectionActionBuilder redirectionActionBuilder)
Build an AJAX reponse.HttpAction
DefaultAjaxRequestResolver. buildAjaxResponse(WebContext context, RedirectionActionBuilder redirectionActionBuilder)
boolean
AjaxRequestResolver. isAjax(WebContext context)
Whether it is an AJAX request.boolean
DefaultAjaxRequestResolver. isAjax(WebContext context)
-
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 String
CallbackUrlResolver. compute(UrlResolver urlResolver, String url, String clientName, WebContext context)
Compute a callback URL from the provided URL resolver, URL, client name and web context.String
NoParameterCallbackUrlResolver. compute(UrlResolver urlResolver, String url, String clientName, WebContext context)
String
PathParameterCallbackUrlResolver. compute(UrlResolver urlResolver, String url, String clientName, WebContext context)
String
QueryParameterCallbackUrlResolver. compute(UrlResolver urlResolver, String url, String clientName, WebContext context)
boolean
CallbackUrlResolver. matches(String clientName, WebContext context)
Whether the current context matches the client name.boolean
NoParameterCallbackUrlResolver. matches(String clientName, WebContext context)
boolean
PathParameterCallbackUrlResolver. matches(String clientName, WebContext context)
boolean
QueryParameterCallbackUrlResolver. matches(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 String
DefaultUrlResolver. compute(String url, WebContext context)
String
UrlResolver. compute(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 Optional<RedirectionAction>
CasLogoutActionBuilder. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Optional<RedirectionAction>
GoogleLogoutActionBuilder. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Optional<RedirectionAction>
LogoutActionBuilder. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Return theRedirectionAction
for logout.Optional<RedirectionAction>
NoLogoutActionBuilder. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
-
Uses of WebContext in org.pac4j.core.logout.handler
Classes in org.pac4j.core.logout.handler with type parameters of type WebContext Modifier and Type Class Description class
DefaultLogoutHandler<C extends WebContext>
Default logout handler.interface
LogoutHandler<C extends WebContext>
This interface defines how to handle logout requests on client side. -
Uses of WebContext in org.pac4j.core.matching
Methods in org.pac4j.core.matching with parameters of type WebContext Modifier and Type Method Description boolean
HeaderMatcher. matches(WebContext context)
boolean
HttpMethodMatcher. matches(WebContext context)
boolean
Matcher. matches(WebContext context)
Check if the web context matches.boolean
MatchingChecker. matches(WebContext context, String matcherNames, Map<String,Matcher> matchersMap)
Check if the web context matches.boolean
PathMatcher. matches(WebContext context)
boolean
RequireAllMatchersChecker. matches(WebContext context, String matcherNames, Map<String,Matcher> matchersMap)
-
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)
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 Optional<UserProfile>
AuthenticatorProfileCreator. create(C credentials, WebContext context)
Optional<UserProfile>
ProfileCreator. create(C credentials, WebContext context)
Create a profile from a credentials. -
Uses of WebContext in org.pac4j.core.profile.factory
Classes in org.pac4j.core.profile.factory with type parameters of type WebContext Modifier and Type Class Description class
ProfileManagerFactory2Aware<C extends WebContext>
For classes that can set the profile manager factory.class
ProfileManagerFactoryAware<C extends WebContext>
For classes that can set the profile manager factory. -
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(UsernamePasswordCredentials credentials, WebContext context)
-
Uses of WebContext in org.pac4j.core.redirect
Methods in org.pac4j.core.redirect with parameters of type WebContext Modifier and Type Method Description Optional<RedirectionAction>
RedirectionActionBuilder. getRedirectionAction(WebContext context)
Return the appropriate "redirection" action. -
Uses of WebContext in org.pac4j.core.state
Methods in org.pac4j.core.state with parameters of type WebContext Modifier and Type Method Description String
StateGenerator. generateState(WebContext webContext)
String
StaticOrRandomStateGenerator. generateState(WebContext webContext)
-