Class DigestAuthorizationProcessor
java.lang.Object
dev.resteasy.client.util.authentication.digest.DigestAuthorizationProcessor
- All Implemented Interfaces:
AuthorizationProcessor
An
AuthorizationProcessor
which creates a HttpHeaders.AUTHORIZATION
header for
DIGEST authentication.- Author:
- James R. Perkins
-
Constructor Summary
ConstructorDescriptionDigestAuthorizationProcessor
(UserCredentials credentials) Creates a new DIGEST processor.DigestAuthorizationProcessor
(UserCredentials credentials, int limit) Creates a new DIGEST processor. -
Method Summary
Modifier and TypeMethodDescriptioncreateRequestHeader
(jakarta.ws.rs.client.ClientRequestContext requestContext) Creates a value for theHttpHeaders.AUTHORIZATION
header.createRequestHeader
(jakarta.ws.rs.client.ClientRequestContext requestContext, List<String> authenticateHeader) Creates a value for theHttpHeaders.AUTHORIZATION
header.void
reset
(jakarta.ws.rs.client.ClientRequestContext requestContext) Processors may require a reset if authorization fails.
-
Constructor Details
-
DigestAuthorizationProcessor
Creates a new DIGEST processor.- Parameters:
credentials
- the credentials to use for authentication
-
DigestAuthorizationProcessor
Creates a new DIGEST processor.- Parameters:
credentials
- the credentials to use for authenticationlimit
- the maximum number of entries to cache for repeat requests
-
-
Method Details
-
createRequestHeader
Description copied from interface:AuthorizationProcessor
Creates a value for theHttpHeaders.AUTHORIZATION
header.- Specified by:
createRequestHeader
in interfaceAuthorizationProcessor
- Parameters:
requestContext
- the client request context- Returns:
- the value for the
HttpHeaders.AUTHORIZATION
header orinvalid @link
{@link null
-
createRequestHeader
public String createRequestHeader(jakarta.ws.rs.client.ClientRequestContext requestContext, List<String> authenticateHeader) Description copied from interface:AuthorizationProcessor
Creates a value for theHttpHeaders.AUTHORIZATION
header.- Specified by:
createRequestHeader
in interfaceAuthorizationProcessor
- Parameters:
requestContext
- the client request contextauthenticateHeader
- theHttpHeaders.WWW_AUTHENTICATE
value- Returns:
- the value for the
HttpHeaders.AUTHORIZATION
header orinvalid @link
{@link null
-
reset
public void reset(jakarta.ws.rs.client.ClientRequestContext requestContext) Description copied from interface:AuthorizationProcessor
Processors may require a reset if authorization fails. By default, this does nothing.- Specified by:
reset
in interfaceAuthorizationProcessor
- Parameters:
requestContext
- the client request context
-