Modifier and Type | Method and Description |
---|---|
protected void |
CasClient.initializeCas20Protocol(WebContext context) |
protected void |
CasClient.initializeCas20ProxyProtocol(WebContext context) |
protected void |
CasClient.initializeCas30Protocol(WebContext context) |
protected void |
CasClient.initializeCas30ProxyProtocol(WebContext context) |
protected void |
CasClient.initializeClientConfiguration(WebContext context) |
protected void |
CasProxyReceptor.internalInit(WebContext context) |
protected void |
CasClient.internalInit(WebContext context) |
protected CasCredentials |
CasProxyReceptor.retrieveCredentials(WebContext context) |
protected CasCredentials |
CasClient.retrieveCredentials(WebContext context)
Get the credentials from the web context.
|
protected RedirectAction |
CasProxyReceptor.retrieveRedirectAction(WebContext context) |
protected RedirectAction |
CasClient.retrieveRedirectAction(WebContext context)
Get the redirection url.
|
protected CasProfile |
CasProxyReceptor.retrieveUserProfile(CasCredentials credentials,
WebContext context) |
protected CasProfile |
CasClient.retrieveUserProfile(CasCredentials credentials,
WebContext context)
Get the user profile from the credentials.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractCasRestClient.destroyTicketGrantingTicket(WebContext context,
HttpTGTProfile profile) |
Modifier and Type | Method and Description |
---|---|
void |
NoLogoutHandler.destroySession(WebContext context) |
void |
LogoutHandler.destroySession(WebContext context)
Destroys the current web session for the given CAS logout request.
|
void |
CasSingleSignOutHandler.destroySession(WebContext context) |
boolean |
NoLogoutHandler.isLogoutRequest(WebContext context) |
boolean |
LogoutHandler.isLogoutRequest(WebContext context)
Defines if this request is a logout one.
|
boolean |
CasSingleSignOutHandler.isLogoutRequest(WebContext context) |
boolean |
NoLogoutHandler.isTokenRequest(WebContext context) |
boolean |
LogoutHandler.isTokenRequest(WebContext context)
Defines if this request is a token one.
|
boolean |
CasSingleSignOutHandler.isTokenRequest(WebContext context) |
void |
NoLogoutHandler.recordSession(WebContext context,
String ticket) |
void |
LogoutHandler.recordSession(WebContext context,
String ticket)
Associates a token request with the current web session.
|
void |
CasSingleSignOutHandler.recordSession(WebContext context,
String ticket) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
RequireAnyRoleAuthorizer.check(WebContext context,
U profile,
String element) |
protected boolean |
RequireAnyPermissionAuthorizer.check(WebContext context,
U profile,
String element) |
protected boolean |
RequireAllRolesAuthorizer.check(WebContext context,
U profile,
String element) |
protected boolean |
RequireAllPermissionsAuthorizer.check(WebContext context,
U profile,
String element) |
boolean |
Authorizer.isAuthorized(WebContext context,
U profile)
Checks if the user profile is authorized for the current web context.
|
boolean |
DefaultAuthorizationChecker.isAuthorized(WebContext context,
UserProfile profile,
List<Authorizer> authorizers) |
boolean |
AuthorizationChecker.isAuthorized(WebContext context,
UserProfile profile,
List<Authorizer> authorizers) |
boolean |
DefaultAuthorizationChecker.isAuthorized(WebContext context,
UserProfile profile,
String authorizerName,
Map<String,Authorizer> authorizersMap) |
boolean |
AuthorizationChecker.isAuthorized(WebContext context,
UserProfile profile,
String authorizerName,
Map<String,Authorizer> authorizersMap) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
CheckProfileTypeAuthorizer.check(WebContext context,
U profile,
Class<U> element) |
protected abstract boolean |
AbstractRequireElementAuthorizer.check(WebContext context,
U profile,
E element) |
protected boolean |
CheckHttpMethodAuthorizer.check(WebContext context,
U profile,
HttpConstants.HTTP_METHOD element) |
boolean |
AbstractRequireAnyAuthorizer.isAuthorized(WebContext context,
U profile) |
boolean |
AbstractRequireAllAuthorizer.isAuthorized(WebContext context,
U profile) |
boolean |
XSSProtectionHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
XFrameOptionsHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
XContentTypeOptionsHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
StrictTransportSecurityHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
CustomSecurityHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
CacheControlHeader.isAuthorized(WebContext context,
UserProfile profile) |
Modifier and Type | Method and Description |
---|---|
String |
DefaultCsrfTokenGenerator.get(WebContext context) |
String |
CsrfTokenGenerator.get(WebContext context)
Get the CSRF token from the session or create it if it doesn't exist.
|
boolean |
CsrfAuthorizer.isAuthorized(WebContext context,
U profile) |
boolean |
CsrfTokenGeneratorAuthorizer.isAuthorized(WebContext context,
UserProfile profile) |
Modifier and Type | Method and Description |
---|---|
String |
IndirectClient.computeFinalCallbackUrl(WebContext context) |
List<Client> |
DefaultClientFinder.find(Clients clients,
WebContext context,
String clientName) |
List<Client> |
ClientFinder.find(Clients clients,
WebContext context,
String clientName) |
Client |
Clients.findClient(WebContext context)
Return the right client according to the web context.
|
C |
IndirectClient.getCredentials(WebContext context)
Get the credentials from the web context.
|
C |
Client.getCredentials(WebContext context)
Get the credentials from the web context.
|
RedirectAction |
IndirectClient.getRedirectAction(WebContext context,
boolean protectedTarget)
Get the redirectAction computed for this client.
|
String |
IndirectClient.getRedirectionUrl(WebContext context)
Return the redirection url to the provider, requested from an anonymous page.
|
protected String |
IndirectClient.getStateParameter(WebContext webContext)
Return the state parameter required by some security protocols like SAML or OAuth.
|
U |
Client.getUserProfile(C credentials,
WebContext context)
Get the user profile based on the provided credentials.
|
U |
BaseClient.getUserProfile(C credentials,
WebContext context)
Get the user profile based on the provided credentials.
|
void |
IndirectClient.redirect(WebContext context,
boolean protectedTarget)
Redirect to the authentication provider by updating the WebContext accordingly.
|
void |
DirectClient.redirect(WebContext context,
boolean protectedTarget) |
void |
Client.redirect(WebContext context,
boolean protectedTarget)
Redirect to the authentication provider for an indirect client.
|
protected abstract C |
IndirectClient.retrieveCredentials(WebContext context) |
protected abstract RedirectAction |
IndirectClient.retrieveRedirectAction(WebContext context) |
protected abstract U |
BaseClient.retrieveUserProfile(C credentials,
WebContext context) |
Modifier and Type | Class and Description |
---|---|
class |
BaseResponseContext
This class implements the methods related to the response as a POJO.
|
class |
J2EContext
This implementation uses the J2E request, response and session.
|
class |
J2ERequestContext
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Cookie |
ContextHelper.getCookie(WebContext context,
String name)
Get a specific cookie by its name.
|
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.isPost(WebContext context)
Whether it is a POST request.
|
Modifier and Type | Method and Description |
---|---|
Object |
SessionStore.get(WebContext context,
String key)
Get the object from its key in store.
|
Object |
J2ESessionStore.get(WebContext context,
String key) |
String |
SessionStore.getOrCreateSessionId(WebContext context)
Get or create the session identifier and initialize the session with it if necessary.
|
String |
J2ESessionStore.getOrCreateSessionId(WebContext context) |
void |
SessionStore.set(WebContext context,
String key,
Object value)
Save an object in the store by its key.
|
void |
J2ESessionStore.set(WebContext context,
String key,
Object value) |
Modifier and Type | Method and Description |
---|---|
static RequiresHttpAction |
RequiresHttpAction.forbidden(String message,
WebContext context)
Build a forbidden response.
|
static RequiresHttpAction |
RequiresHttpAction.ok(String message,
WebContext context)
Build an HTTP Ok.
|
static RequiresHttpAction |
RequiresHttpAction.ok(String message,
WebContext context,
String content)
Build an HTTP Ok.
|
static RequiresHttpAction |
RequiresHttpAction.redirect(String message,
WebContext context,
String url)
Build a redirection.
|
static RequiresHttpAction |
RequiresHttpAction.unauthorized(String message,
WebContext context,
String realmName)
Build a basic auth popup credentials.
|
Modifier and Type | Method and Description |
---|---|
Object |
HttpActionAdapter.adapt(int code,
WebContext context)
Adapt the HTTP action.
|
String |
RelativeCallbackUrlResolver.compute(String callbackUrl,
WebContext context) |
String |
DefaultCallbackUrlResolver.compute(String callbackUrl,
WebContext context) |
String |
CallbackUrlResolver.compute(String callbackUrl,
WebContext context)
Compute a new callback url from the defined callback url and the web context.
|
boolean |
DefaultAjaxRequestResolver.isAjax(WebContext context) |
boolean |
AjaxRequestResolver.isAjax(WebContext context)
Whether it is an AJAX request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Matcher.matches(WebContext context) |
boolean |
ExcludedPathMatcher.matches(WebContext context) |
boolean |
MatchingChecker.matches(WebContext context,
String matcherName,
Map<String,Matcher> matchersMap) |
boolean |
DefaultMatchingChecker.matches(WebContext context,
String matcherName,
Map<String,Matcher> matchersMap) |
Modifier and Type | Field and Description |
---|---|
protected WebContext |
ProfileManager.context |
Constructor and Description |
---|
ProfileManager(WebContext context) |
Modifier and Type | Method and Description |
---|---|
void |
InitializableWebObject.init(WebContext context)
Initialize the object.
|
protected abstract void |
InitializableWebObject.internalInit(WebContext context)
Internal initialization of the object.
|
void |
InitializableWebObject.reinit(WebContext context)
Force (again) the initialization of the object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
GaeUserServiceClient.internalInit(WebContext context) |
protected GaeUserCredentials |
GaeUserServiceClient.retrieveCredentials(WebContext context) |
protected RedirectAction |
GaeUserServiceClient.retrieveRedirectAction(WebContext context) |
protected GaeUserServiceProfile |
GaeUserServiceClient.retrieveUserProfile(GaeUserCredentials credentials,
WebContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
IpRegexpAuthorizer.isAuthorized(WebContext context,
UserProfile profile) |
Modifier and Type | Method and Description |
---|---|
C |
DirectHttpClient.getCredentials(WebContext context) |
AnonymousCredentials |
AnonymousClient.getCredentials(WebContext context) |
protected void |
ParameterClient.internalInit(WebContext context) |
protected void |
IpClient.internalInit(WebContext context) |
protected void |
HeaderClient.internalInit(WebContext context) |
protected void |
DirectHttpClient.internalInit(WebContext context) |
protected void |
DirectFormClient.internalInit(WebContext context) |
protected void |
DirectBasicAuthClient.internalInit(WebContext context) |
protected void |
CookieClient.internalInit(WebContext context) |
protected void |
AnonymousClient.internalInit(WebContext context) |
protected AnonymousProfile |
AnonymousClient.retrieveUserProfile(AnonymousCredentials credentials,
WebContext context) |
protected CommonProfile |
DirectHttpClient.retrieveUserProfile(C credentials,
WebContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
IndirectHttpClient.internalInit(WebContext context) |
protected void |
IndirectBasicAuthClient.internalInit(WebContext context) |
protected void |
FormClient.internalInit(WebContext context) |
protected UsernamePasswordCredentials |
IndirectBasicAuthClient.retrieveCredentials(WebContext context) |
protected UsernamePasswordCredentials |
FormClient.retrieveCredentials(WebContext context) |
protected RedirectAction |
IndirectBasicAuthClient.retrieveRedirectAction(WebContext context) |
protected RedirectAction |
FormClient.retrieveRedirectAction(WebContext context) |
protected HttpProfile |
IndirectHttpClient.retrieveUserProfile(C credentials,
WebContext context) |
Modifier and Type | Method and Description |
---|---|
TokenCredentials |
ParameterExtractor.extract(WebContext context) |
TokenCredentials |
IpExtractor.extract(WebContext context) |
TokenCredentials |
HeaderExtractor.extract(WebContext context) |
UsernamePasswordCredentials |
FormExtractor.extract(WebContext context) |
C |
Extractor.extract(WebContext context)
Extract the right credentials.
|
TokenCredentials |
CookieExtractor.extract(WebContext context) |
UsernamePasswordCredentials |
BasicAuthExtractor.extract(WebContext context) |
Modifier and Type | Method and Description |
---|---|
protected OAuthCredentials |
DropBoxClient.getOAuthCredentials(WebContext context)
Get the OAuth credentials from the web context.
|
protected abstract OAuthCredentials |
BaseOAuthClient.getOAuthCredentials(WebContext context)
Get the OAuth credentials from the web context.
|
protected OAuthCredentials |
BaseOAuth20StateClient.getOAuthCredentials(WebContext context) |
protected OAuthCredentials |
BaseOAuth20Client.getOAuthCredentials(WebContext context)
Get the OAuth credentials from the web context.
|
protected OAuthCredentials |
BaseOAuth10Client.getOAuthCredentials(WebContext context)
Get the OAuth credentials from the web context.
|
U |
BaseOAuthClient.getUserProfile(WebContext context,
String accessToken)
Get the user profile from the access token.
|
protected boolean |
YahooClient.hasBeenCancelled(WebContext context) |
protected boolean |
WordPressClient.hasBeenCancelled(WebContext context) |
protected boolean |
WindowsLiveClient.hasBeenCancelled(WebContext context) |
protected boolean |
VkClient.hasBeenCancelled(WebContext context) |
protected boolean |
TwitterClient.hasBeenCancelled(WebContext context) |
protected boolean |
StravaClient.hasBeenCancelled(WebContext context) |
protected boolean |
PayPalClient.hasBeenCancelled(WebContext context) |
protected boolean |
OrcidClient.hasBeenCancelled(WebContext context) |
protected boolean |
OkClient.hasBeenCancelled(WebContext context) |
protected boolean |
LinkedIn2Client.hasBeenCancelled(WebContext context) |
protected boolean |
Google2Client.hasBeenCancelled(WebContext context) |
protected boolean |
GitHubClient.hasBeenCancelled(WebContext context) |
protected boolean |
FoursquareClient.hasBeenCancelled(WebContext context) |
protected boolean |
FacebookClient.hasBeenCancelled(WebContext context) |
protected boolean |
DropBoxClient.hasBeenCancelled(WebContext context) |
protected boolean |
CasOAuthWrapperClient.hasBeenCancelled(WebContext context) |
protected boolean |
BitbucketClient.hasBeenCancelled(WebContext context) |
protected abstract boolean |
BaseOAuthClient.hasBeenCancelled(WebContext context)
Return if the authentication has been cancelled.
|
protected void |
YahooClient.internalInit(WebContext context) |
protected void |
WordPressClient.internalInit(WebContext context) |
protected void |
WindowsLiveClient.internalInit(WebContext context) |
protected void |
VkClient.internalInit(WebContext context) |
protected void |
TwitterClient.internalInit(WebContext context) |
protected void |
StravaClient.internalInit(WebContext context) |
protected void |
PayPalClient.internalInit(WebContext context) |
protected void |
OrcidClient.internalInit(WebContext context) |
protected void |
OkClient.internalInit(WebContext context) |
protected void |
LinkedIn2Client.internalInit(WebContext context) |
protected void |
Google2Client.internalInit(WebContext context) |
protected void |
GitHubClient.internalInit(WebContext context) |
protected void |
FoursquareClient.internalInit(WebContext context) |
protected void |
FacebookClient.internalInit(WebContext context) |
protected void |
DropBoxClient.internalInit(WebContext context) |
protected void |
CasOAuthWrapperClient.internalInit(WebContext context) |
protected void |
BitbucketClient.internalInit(WebContext context) |
protected void |
BaseOAuthClient.internalInit(WebContext context) |
protected String |
Google2Client.retrieveAuthorizationUrl(WebContext context) |
protected abstract String |
BaseOAuthClient.retrieveAuthorizationUrl(WebContext context) |
protected String |
BaseOAuth20StateClient.retrieveAuthorizationUrl(WebContext context) |
protected String |
BaseOAuth20Client.retrieveAuthorizationUrl(WebContext context) |
protected String |
BaseOAuth10Client.retrieveAuthorizationUrl(WebContext context) |
protected OAuthCredentials |
BaseOAuthClient.retrieveCredentials(WebContext context) |
protected RedirectAction |
BaseOAuthClient.retrieveRedirectAction(WebContext context) |
protected U |
BaseOAuthClient.retrieveUserProfile(OAuthCredentials credentials,
WebContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
OidcClient.internalInit(WebContext context) |
protected OidcCredentials |
OidcClient.retrieveCredentials(WebContext context) |
protected RedirectAction |
OidcClient.retrieveRedirectAction(WebContext context) |
protected OidcProfile |
OidcClient.retrieveUserProfile(OidcCredentials credentials,
WebContext context) |
Modifier and Type | Method and Description |
---|---|
protected String |
YahooOpenIdClient.getUser(WebContext context) |
protected abstract String |
BaseOpenIdClient.getUser(WebContext context)
Return the user identifier for the web context.
|
protected void |
YahooOpenIdClient.internalInit(WebContext context) |
protected void |
BaseOpenIdClient.internalInit(WebContext context) |
protected OpenIdCredentials |
BaseOpenIdClient.retrieveCredentials(WebContext context) |
protected RedirectAction |
BaseOpenIdClient.retrieveRedirectAction(WebContext context) |
protected U |
BaseOpenIdClient.retrieveUserProfile(OpenIdCredentials credentials,
WebContext context) |
Modifier and Type | Method and Description |
---|---|
protected String |
SAML2Client.getStateParameter(WebContext webContext) |
protected org.opensaml.saml.metadata.resolver.MetadataResolver |
SAML2Client.initServiceProviderMetadataResolver(WebContext context) |
protected void |
SAML2Client.internalInit(WebContext context) |
protected SAML2Credentials |
SAML2Client.retrieveCredentials(WebContext wc) |
protected RedirectAction |
SAML2Client.retrieveRedirectAction(WebContext wc) |
protected SAML2Profile |
SAML2Client.retrieveUserProfile(SAML2Credentials credentials,
WebContext context) |
Modifier and Type | Method and Description |
---|---|
WebContext |
SAML2MessageContext.getWebContext() |
Modifier and Type | Method and Description |
---|---|
protected void |
SAML2ContextProvider.addTransportContext(WebContext webContext,
SAML2MessageContext context) |
SAML2MessageContext |
SAMLContextProvider.buildContext(WebContext webContext) |
SAML2MessageContext |
SAML2ContextProvider.buildContext(WebContext webContext) |
SAML2MessageContext |
SAMLContextProvider.buildServiceProviderContext(WebContext webContext) |
SAML2MessageContext |
SAML2ContextProvider.buildServiceProviderContext(WebContext webContext) |
protected org.opensaml.messaging.context.MessageContext<Pac4jSAMLResponse> |
SAML2ContextProvider.prepareOutboundMessageContext(WebContext webContext) |
void |
SAML2MessageContext.setWebContext(WebContext webContext) |
Modifier and Type | Method and Description |
---|---|
SAMLMessageStorage |
SAMLMessageStorageFactory.getMessageStorage(WebContext request)
Provides message storage related to the given request.
|
SAMLMessageStorage |
HttpSessionStorageFactory.getMessageStorage(WebContext request) |
SAMLMessageStorage |
EmptyStorageFactory.getMessageStorage(WebContext request) |
Constructor and Description |
---|
HttpSessionStorage(WebContext request)
Creates the storage object.
|
Modifier and Type | Method and Description |
---|---|
WebContext |
Pac4jSAMLResponse.getWebContext()
Gets web context.
|
WebContext |
DefaultPac4jSAMLResponse.getWebContext() |
Constructor and Description |
---|
DefaultPac4jSAMLResponse(WebContext response)
Constructs a response adaptor wrapping the given response.
|
Pac4jHTTPPostDecoder(WebContext context) |
Pac4jHTTPPostEncoder(WebContext context,
Pac4jSAMLResponse responseAdapter) |
Pac4jHTTPRedirectDeflateEncoder(WebContext context,
Pac4jSAMLResponse responseAdapter) |
Copyright © 2016. All rights reserved.