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 |
---|---|
Authenticator<C> |
getAuthenticator() |
CredentialsExtractor<C> |
getCredentialsExtractor() |
ProfileCreator<C,U> |
getProfileCreator() |
protected C |
retrieveCredentials(WebContext context)
Retrieve the credentials.
|
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() |
getCredentials, redirect
addAuthorizationGenerator, addAuthorizationGenerators, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName
init, internalInit, reinit
protected C retrieveCredentials(WebContext context) throws HttpAction
BaseClient
retrieveCredentials
in class BaseClient<C extends Credentials,U extends CommonProfile>
context
- the web contextHttpAction
- whether an additional HTTP action is requiredprotected U retrieveUserProfile(C credentials, WebContext context) throws HttpAction
BaseClient
retrieveUserProfile
in class BaseClient<C extends Credentials,U extends CommonProfile>
credentials
- the credentialscontext
- the web contextHttpAction
- whether an additional HTTP action is requiredpublic 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)
public String toString()
toString
in class BaseClient<C extends Credentials,U extends CommonProfile>
Copyright © 2016. All rights reserved.