public final class AnonymousClient extends DirectClient<AnonymousCredentials,AnonymousProfile>
Modifier and Type | Field and Description |
---|---|
static AnonymousClient |
INSTANCE |
logger
Constructor and Description |
---|
AnonymousClient() |
Modifier and Type | Method and Description |
---|---|
AnonymousCredentials |
getCredentials(WebContext context)
Get the credentials from the web context.
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected AnonymousProfile |
retrieveUserProfile(AnonymousCredentials credentials,
WebContext context)
Retrieve a user userprofile.
|
redirect
addAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName, toString
init, reinit
public static final AnonymousClient INSTANCE
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class InitializableWebObject
context
- the web contextpublic AnonymousCredentials getCredentials(WebContext context) throws HttpAction
Client
Get 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 requiredprotected AnonymousProfile retrieveUserProfile(AnonymousCredentials credentials, WebContext context) throws HttpAction
BaseClient
retrieveUserProfile
in class BaseClient<AnonymousCredentials,AnonymousProfile>
credentials
- the credentialscontext
- the web contextHttpAction
- whether an additional HTTP action is requiredCopyright © 2016. All rights reserved.