public class ParameterClient extends DirectHttpClient<TokenCredentials>
This class is the client to authenticate users directly based on a provided parameter (in a GET and/or POST request).
It returns a HttpProfile
.
HttpProfile
extractor
logger
Constructor and Description |
---|
ParameterClient() |
ParameterClient(String parameterName,
TokenAuthenticator tokenAuthenticator) |
ParameterClient(String parameterName,
TokenAuthenticator tokenAuthenticator,
ProfileCreator profileCreator) |
Modifier and Type | Method and Description |
---|---|
ClientType |
getClientType() |
String |
getParameterName() |
protected void |
internalInit(WebContext context) |
boolean |
isSupportGetRequest() |
boolean |
isSupportPostRequest() |
protected ParameterClient |
newClient() |
void |
setParameterName(String parameterName) |
void |
setSupportGetRequest(boolean supportGetRequest) |
void |
setSupportPostRequest(boolean supportPostRequest) |
clone, getAuthenticator, getCredentials, getProfileCreator, retrieveUserProfile, setAuthenticator, setProfileCreator, toString
redirect
addAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName
init, reinit
public ParameterClient()
public ParameterClient(String parameterName, TokenAuthenticator tokenAuthenticator)
public ParameterClient(String parameterName, TokenAuthenticator tokenAuthenticator, ProfileCreator profileCreator)
protected void internalInit(WebContext context)
internalInit
in class DirectHttpClient<TokenCredentials>
protected ParameterClient newClient()
newClient
in class BaseClient<TokenCredentials,CommonProfile>
public ClientType getClientType()
getClientType
in class BaseClient<TokenCredentials,CommonProfile>
public String getParameterName()
public void setParameterName(String parameterName)
public boolean isSupportGetRequest()
public void setSupportGetRequest(boolean supportGetRequest)
public boolean isSupportPostRequest()
public void setSupportPostRequest(boolean supportPostRequest)
Copyright © 2016. All Rights Reserved.