public class IndirectBasicAuthClient extends IndirectHttpClient<UsernamePasswordCredentials>
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 : RequiresHttpAction is returned which must be handled by the application to force
authentication.
It returns a HttpProfile.
HttpProfileextractorATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, NEEDS_CLIENT_REDIRECTION_PARAMETERlogger| Constructor and Description |
|---|
IndirectBasicAuthClient() |
IndirectBasicAuthClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator) |
IndirectBasicAuthClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator,
ProfileCreator profileCreator) |
| Modifier and Type | Method and Description |
|---|---|
IndirectBasicAuthClient |
clone() |
ClientType |
getClientType() |
String |
getRealmName() |
protected void |
internalInit(WebContext context) |
protected boolean |
isDirectRedirection() |
protected IndirectBasicAuthClient |
newClient() |
protected UsernamePasswordCredentials |
retrieveCredentials(WebContext context) |
protected RedirectAction |
retrieveRedirectAction(WebContext context) |
void |
setRealmName(String realmName) |
String |
toString() |
getAuthenticator, getProfileCreator, retrieveUserProfile, setAuthenticator, setProfileCreatorcomputeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getRedirectionUrl, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrladdAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setNameinit, reinitpublic IndirectBasicAuthClient()
public IndirectBasicAuthClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator)
public IndirectBasicAuthClient(UsernamePasswordAuthenticator usernamePasswordAuthenticator, ProfileCreator profileCreator)
protected void internalInit(WebContext context)
internalInit in class IndirectHttpClient<UsernamePasswordCredentials>public IndirectBasicAuthClient clone()
clone in class IndirectHttpClient<UsernamePasswordCredentials>protected IndirectBasicAuthClient newClient()
newClient in class BaseClient<UsernamePasswordCredentials,HttpProfile>protected RedirectAction retrieveRedirectAction(WebContext context)
retrieveRedirectAction in class IndirectClient<UsernamePasswordCredentials,HttpProfile>protected UsernamePasswordCredentials retrieveCredentials(WebContext context) throws RequiresHttpAction
retrieveCredentials in class IndirectClient<UsernamePasswordCredentials,HttpProfile>RequiresHttpActionpublic String toString()
toString in class BaseClient<UsernamePasswordCredentials,HttpProfile>protected boolean isDirectRedirection()
isDirectRedirection in class IndirectClient<UsernamePasswordCredentials,HttpProfile>public ClientType getClientType()
getClientType in class BaseClient<UsernamePasswordCredentials,HttpProfile>public String getRealmName()
public void setRealmName(String realmName)
Copyright © 2016. All Rights Reserved.