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.
AuthenticationSchemeATTR_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, setIsDigestpublic RestChallengeAuthentication(boolean isDigest)
public RestChallengeAuthentication(ConnectionAuthentication authentication)
public void authenticate(java.lang.Object jerseyClient)
throws ConnectionException
authenticate in interface ConnectionAuthenticationauthenticate in class DefaultChallengeAuthenticationconnObj - Client object for configuring connection requestConnectionException - If the authentication fails.