public class DirectDigestAuthClient extends DirectClientV2<DigestCredentials,CommonProfile>
This class is the client to authenticate users directly through HTTP digest auth.
Add the commons-codec dependency to use this class.
logger| Constructor and Description |
|---|
DirectDigestAuthClient() |
DirectDigestAuthClient(Authenticator digestAuthenticator) |
DirectDigestAuthClient(Authenticator digestAuthenticator,
ProfileCreator profileCreator) |
| Modifier and Type | Method and Description |
|---|---|
String |
getRealm() |
protected void |
internalInit(WebContext context) |
DigestCredentials |
retrieveCredentials(WebContext context)
Per RFC 2617
If a server receives a request for an access-protected object, and an
acceptable Authorization header is not sent, the server responds with
a "401 Unauthorized" status code, and a WWW-Authenticate header
|
void |
setRealm(String realm) |
String |
toString() |
getAuthenticator, getCredentialsExtractor, getProfileCreator, retrieveUserProfile, setAuthenticator, setCredentialsExtractor, setProfileCreatorgetCredentials, redirectaddAuthorizationGenerator, addAuthorizationGenerators, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setNameinit, reinitpublic DirectDigestAuthClient()
public DirectDigestAuthClient(Authenticator digestAuthenticator)
public DirectDigestAuthClient(Authenticator digestAuthenticator, ProfileCreator profileCreator)
protected void internalInit(WebContext context)
internalInit in class InitializableWebObjectpublic DigestCredentials retrieveCredentials(WebContext context) throws HttpAction
retrieveCredentials in class DirectClientV2<DigestCredentials,CommonProfile>HttpActionpublic String getRealm()
public void setRealm(String realm)
public String toString()
toString in class DirectClientV2<DigestCredentials,CommonProfile>Copyright © 2017. All Rights Reserved.