public class DigestAuthentication extends BasicAuthentication
This method has a Keystone authentication method as fallback.
Example:
HTTPAuthentication auth = new DigestAuthentication("username", "password");
auth.setCAPath("/etc/grid-security/certificates/"); //path to CA directory
Client client = new HTTPClient(URI.create("https://remote.server.net"), auth);| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTIFIER |
| Constructor and Description |
|---|
DigestAuthentication(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentifier()
Returns unique identifier for this authentication method.
|
authenticate, getFallback, getPassword, getUsername, setAuthScheme, setPassword, setUsernamecreateSSLContext, getCAFile, getCAPath, getConnection, getCredentialsProvider, getTarget, loadCAs, setCAFile, setCAPath, setConnection, setCredentialsProvider, setTargetpublic static final String IDENTIFIER
public String getIdentifier()
AuthenticationgetIdentifier in interface AuthenticationgetIdentifier in class BasicAuthenticationCopyright © 2016. All rights reserved.