public final class RestChallengeAuthentication
extends java.lang.Object
URLConnection.
The Default variant is BASIC Authentication as configured in metadata.
The variant is decided when the ChallengeAuthentication is instantiated.
RestChallengeAuthentication(boolean useDigest).
A value of true for the useDigest param will
enable Digest authentication.
AuthenticationSchemeATTR_PROVIDER, AUTHENTICATION, PASSWORD, USERNAME| Constructor and Description |
|---|
RestChallengeAuthentication(boolean isDigest) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(java.lang.Object jerseyClient)
Authenticate the http Connection instance using this authentication scheme.
|
org.w3c.dom.Node |
describe()
Describe this Authentication scheme.
|
java.util.Map |
getCredentials()
Fetch the credentials represented by the scheme.
|
boolean |
isDigest() |
void |
loadCredentials(java.util.Map environment)
Load the Authentication Scheme with credentials from Credential
store.
|
public void authenticate(java.lang.Object jerseyClient)
throws ConnectionException
authenticate in interface ConnectionAuthenticationconnObj - Client object for configuring connection request{@link - ConnectionException} If the authentication fails.ConnectionExceptionpublic void loadCredentials(java.util.Map environment)
Map represents the environment that has the
security configuration passed by the Connection Manager
which contains the credential properties that this scheme defines.loadCredentials in interface ConnectionAuthenticationenvironment - The environment that has the credential properties
defined by this scheme.public java.util.Map getCredentials()
getCredentials in interface ConnectionAuthenticationMap representing the connection
credentials. The password will be char array.public boolean isDigest()
isDigest in interface ConnectionAuthenticationpublic org.w3c.dom.Node describe()
describe in interface ConnectionAuthenticationNode describing this authentication scheme.