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, setUsername
createSSLContext, getCAFile, getCAPath, getConnection, getCredentialsProvider, getTarget, loadCAs, setCAFile, setCAPath, setConnection, setCredentialsProvider, setTarget
public static final String IDENTIFIER
public String getIdentifier()
Authentication
getIdentifier
in interface Authentication
getIdentifier
in class BasicAuthentication
Copyright © 2016. All Rights Reserved.