public abstract class DirectClient<C extends Credentials,U extends CommonProfile> extends BaseClient<C,U>
This class is the default direct (stateless) implementation of an authentication client (whatever the mechanism). In that case, redirecting does not make any sense.
logger| Constructor and Description |
|---|
DirectClient() |
| Modifier and Type | Method and Description |
|---|---|
C |
getCredentials(WebContext context)
Get the credentials from the web context.
|
HttpAction |
redirect(WebContext context)
Redirect to the authentication provider for an indirect client.
|
addAuthorizationGenerator, addAuthorizationGenerators, getAuthorizationGenerators, getName, getUserProfile, retrieveCredentials, retrieveUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName, toStringinit, internalInit, reinitpublic 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 requiredCopyright © 2017. All Rights Reserved.