public abstract class DirectClient<C extends Credentials,U extends CommonProfile> extends BaseClient<C,U>
logger| Constructor and Description |
|---|
DirectClient() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
clientInit(WebContext context)
Initialize the client.
|
C |
getCredentials(WebContext context)
Get the credentials from the web context.
|
RedirectAction |
getLogoutAction(WebContext context,
U currentProfile,
String targetUrl)
Return the logout action (indirect clients).
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
HttpAction |
redirect(WebContext context)
Redirect to the authentication provider for an indirect client.
|
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setName, setProfileCreator, toStringinit, reinitprotected final void internalInit(WebContext context)
InitializableWebObjectinternalInit in class InitializableWebObjectcontext - the web contextprotected abstract void clientInit(WebContext context)
context - the web contextpublic final HttpAction redirect(WebContext context) throws HttpAction
ClientRedirect to the authentication provider for an indirect client.
context - the current web contextHttpAction - whether an additional HTTP action is requiredpublic final C getCredentials(WebContext context) throws HttpAction
ClientGet the credentials from the web context. If no validation was made remotely (direct client), credentials must be validated at this step.
In some cases, a HttpAction may be thrown instead.
context - the current web contextHttpAction - whether an additional HTTP action is requiredpublic final RedirectAction getLogoutAction(WebContext context, U currentProfile, String targetUrl)
ClientReturn the logout action (indirect clients).
context - the current web contextcurrentProfile - the currentProfiletargetUrl - the target url after logoutCopyright © 2017. All Rights Reserved.