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()
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()
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, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreator, toStringinitprotected final void internalInit()
InitializableObjectinternalInit in class InitializableObjectprotected abstract void clientInit()
public final HttpAction redirect(WebContext context)
ClientRedirect to the authentication provider for an indirect client.
context - the current web contextpublic final C getCredentials(WebContext context)
ClientGet the credentials from the web context. If no validation was made remotely (direct client), credentials must be validated at this step.
context - the current web contextpublic 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 © 2018. All rights reserved.