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()
Return the client type.
|
String |
getParameterName() |
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
boolean |
isSupportGetRequest() |
boolean |
isSupportPostRequest() |
protected ParameterClient |
newClient()
Create a new instance of the client.
|
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)
InitializableWebObject
internalInit
in class DirectHttpClient<TokenCredentials>
context
- the web contextprotected ParameterClient newClient()
BaseClient
newClient
in class BaseClient<TokenCredentials,CommonProfile>
public ClientType getClientType()
BaseClient
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.