public abstract class DirectClientV2<C extends Credentials,U extends CommonProfile> extends DirectClient<C,U>
logger| Constructor and Description |
|---|
DirectClientV2() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertAuthenticatorTypes(Class<? extends Authenticator>... classes) |
Authenticator<C> |
getAuthenticator() |
C |
getCredentials(WebContext context)
Get the credentials from the web context.
|
CredentialsExtractor<C> |
getCredentialsExtractor() |
ProfileCreator<C,U> |
getProfileCreator() |
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected U |
retrieveUserProfile(C credentials,
WebContext context)
Retrieve a user userprofile.
|
void |
setAuthenticator(Authenticator<C> authenticator) |
void |
setCredentialsExtractor(CredentialsExtractor<C> credentialsExtractor) |
void |
setProfileCreator(ProfileCreator<C,U> profileCreator) |
String |
toString() |
redirectaddAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setNameinit, reinitprotected void internalInit(WebContext context)
InitializableWebObjectinternalInit in class InitializableWebObjectcontext - the web contextpublic 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 requiredprotected U retrieveUserProfile(C credentials, WebContext context) throws HttpAction
BaseClientretrieveUserProfile in class BaseClient<C extends Credentials,U extends CommonProfile>credentials - the credentialscontext - the web contextHttpAction - whether an additional HTTP action is requiredprotected void assertAuthenticatorTypes(Class<? extends Authenticator>... classes)
public String toString()
toString in class BaseClient<C extends Credentials,U extends CommonProfile>public CredentialsExtractor<C> getCredentialsExtractor()
public void setCredentialsExtractor(CredentialsExtractor<C> credentialsExtractor)
public Authenticator<C> getAuthenticator()
public void setAuthenticator(Authenticator<C> authenticator)
public ProfileCreator<C,U> getProfileCreator()
public void setProfileCreator(ProfileCreator<C,U> profileCreator)
Copyright © 2016. All Rights Reserved.