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, toString
init
protected final void internalInit()
InitializableObject
internalInit
in class InitializableObject
protected abstract void clientInit()
public final HttpAction redirect(WebContext context)
Client
Redirect to the authentication provider for an indirect client.
context
- the current web contextpublic final C getCredentials(WebContext context)
Client
Get 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)
Client
Return the logout action (indirect clients).
context
- the current web contextcurrentProfile
- the currentProfiletargetUrl
- the target url after logoutCopyright © 2019. All rights reserved.