public class DirectFormClient extends DirectHttpClient<UsernamePasswordCredentials>
This class is the client to authenticate users, based on form HTTP parameters.
It returns a HttpProfile
.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PASSWORD_PARAMETER |
static String |
DEFAULT_USERNAME_PARAMETER |
extractor
logger
Constructor and Description |
---|
DirectFormClient() |
DirectFormClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator) |
DirectFormClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator,
ProfileCreator profileCreator) |
Modifier and Type | Method and Description |
---|---|
ClientType |
getClientType() |
String |
getPasswordParameter() |
String |
getUsernameParameter() |
protected void |
internalInit(WebContext context) |
protected DirectHttpClient<UsernamePasswordCredentials> |
newClient() |
void |
setPasswordParameter(String passwordParameter) |
void |
setUsernameParameter(String usernameParameter) |
String |
toString() |
clone, getAuthenticator, getCredentials, getProfileCreator, retrieveUserProfile, setAuthenticator, setProfileCreator
redirect
addAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName
init, reinit
public static final String DEFAULT_USERNAME_PARAMETER
public static final String DEFAULT_PASSWORD_PARAMETER
public DirectFormClient()
public DirectFormClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator)
public DirectFormClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator, ProfileCreator profileCreator)
protected DirectHttpClient<UsernamePasswordCredentials> newClient()
newClient
in class BaseClient<UsernamePasswordCredentials,CommonProfile>
protected void internalInit(WebContext context)
internalInit
in class DirectHttpClient<UsernamePasswordCredentials>
public String getUsernameParameter()
public void setUsernameParameter(String usernameParameter)
public String getPasswordParameter()
public void setPasswordParameter(String passwordParameter)
public String toString()
toString
in class DirectHttpClient<UsernamePasswordCredentials>
public ClientType getClientType()
getClientType
in class BaseClient<UsernamePasswordCredentials,CommonProfile>
Copyright © 2016. All Rights Reserved.