public class RestChallengeAuthentication extends DefaultChallengeAuthentication
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.
AuthenticationScheme
ATTR_PROVIDER, AUTHENTICATION, PASSWORD, USERNAME
Constructor and Description |
---|
RestChallengeAuthentication(boolean isDigest) |
RestChallengeAuthentication(ConnectionAuthentication authentication) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(java.lang.Object jerseyClient)
Authenticate the http Connection instance using this authentication scheme.
|
describe, getCredentials, isDigest, loadCredentials, setIsDigest
public RestChallengeAuthentication(boolean isDigest)
public RestChallengeAuthentication(ConnectionAuthentication authentication)
public void authenticate(java.lang.Object jerseyClient) throws ConnectionException
authenticate
in interface ConnectionAuthentication
authenticate
in class DefaultChallengeAuthentication
connObj
- Client object for configuring connection requestConnectionException
- If the authentication fails.