public class IndirectBasicAuthClient extends IndirectClient<UsernamePasswordCredentials,CommonProfile>
This class is the client to authenticate users through HTTP basic auth. It was previously named: BasicAuthClient.
For authentication, the user is redirected to the callback url. If the user is not authenticated by basic auth, a
specific exception : HttpAction is returned which must be handled by the application to force
authentication.
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolverlogger| Constructor and Description |
|---|
IndirectBasicAuthClient() |
IndirectBasicAuthClient(Authenticator usernamePasswordAuthenticator) |
IndirectBasicAuthClient(Authenticator usernamePasswordAuthenticator,
ProfileCreator profileCreator) |
IndirectBasicAuthClient(java.lang.String realmName,
Authenticator usernamePasswordAuthenticator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientInit() |
java.lang.String |
getRealmName() |
protected UsernamePasswordCredentials |
retrieveCredentials(WebContext context) |
void |
setRealmName(java.lang.String realmName) |
java.lang.String |
toString() |
computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectAction, getRedirectActionBuilder, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectActionBuilder, setUrlResolveraddAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreatorinitpublic IndirectBasicAuthClient()
public IndirectBasicAuthClient(Authenticator usernamePasswordAuthenticator)
public IndirectBasicAuthClient(java.lang.String realmName,
Authenticator usernamePasswordAuthenticator)
public IndirectBasicAuthClient(Authenticator usernamePasswordAuthenticator, ProfileCreator profileCreator)
protected void clientInit()
clientInit in class IndirectClient<UsernamePasswordCredentials,CommonProfile>protected UsernamePasswordCredentials retrieveCredentials(WebContext context)
retrieveCredentials in class BaseClient<UsernamePasswordCredentials,CommonProfile>public java.lang.String getRealmName()
public void setRealmName(java.lang.String realmName)
public java.lang.String toString()
toString in class IndirectClient<UsernamePasswordCredentials,CommonProfile>Copyright © 2019. All Rights Reserved.