public class DirectBasicAuthClient extends DirectHttpClient<UsernamePasswordCredentials>
This class is the client to authenticate users directly through HTTP basic auth.
It returns a HttpProfile
.
HttpProfile
extractor
logger
Constructor and Description |
---|
DirectBasicAuthClient() |
DirectBasicAuthClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator) |
DirectBasicAuthClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator,
ProfileCreator profileCreator) |
Modifier and Type | Method and Description |
---|---|
ClientType |
getClientType()
Return the client type.
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected DirectBasicAuthClient |
newClient()
Create a new instance of the client.
|
clone, getAuthenticator, getCredentials, getProfileCreator, retrieveUserProfile, setAuthenticator, setProfileCreator, toString
redirect
addAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName
init, reinit
public DirectBasicAuthClient()
public DirectBasicAuthClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator)
public DirectBasicAuthClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator, ProfileCreator profileCreator)
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class DirectHttpClient<UsernamePasswordCredentials>
context
- the web contextprotected DirectBasicAuthClient newClient()
BaseClient
newClient
in class BaseClient<UsernamePasswordCredentials,CommonProfile>
public ClientType getClientType()
BaseClient
getClientType
in class BaseClient<UsernamePasswordCredentials,CommonProfile>
Copyright © 2016. All rights reserved.