Class DigestAuthorizationProcessor
- java.lang.Object
-
- dev.resteasy.client.util.authentication.digest.DigestAuthorizationProcessor
-
- All Implemented Interfaces:
AuthorizationProcessor
public class DigestAuthorizationProcessor extends Object implements AuthorizationProcessor
AnAuthorizationProcessorwhich creates aHttpHeaders.AUTHORIZATIONheader for DIGEST authentication.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description DigestAuthorizationProcessor(UserCredentials credentials)Creates a new DIGEST processor.DigestAuthorizationProcessor(UserCredentials credentials, int limit)Creates a new DIGEST processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateRequestHeader(jakarta.ws.rs.client.ClientRequestContext requestContext)Creates a value for theHttpHeaders.AUTHORIZATIONheader.StringcreateRequestHeader(jakarta.ws.rs.client.ClientRequestContext requestContext, List<String> authenticateHeader)Creates a value for theHttpHeaders.AUTHORIZATIONheader.voidreset(jakarta.ws.rs.client.ClientRequestContext requestContext)Processors may require a reset if authorization fails.
-
-
-
Constructor Detail
-
DigestAuthorizationProcessor
public DigestAuthorizationProcessor(UserCredentials credentials)
Creates a new DIGEST processor.- Parameters:
credentials- the credentials to use for authentication
-
DigestAuthorizationProcessor
public DigestAuthorizationProcessor(UserCredentials credentials, int limit)
Creates a new DIGEST processor.- Parameters:
credentials- the credentials to use for authenticationlimit- the maximum number of entries to cache for repeat requests
-
-
Method Detail
-
createRequestHeader
public String createRequestHeader(jakarta.ws.rs.client.ClientRequestContext requestContext)
Description copied from interface:AuthorizationProcessorCreates a value for theHttpHeaders.AUTHORIZATIONheader.- Specified by:
createRequestHeaderin interfaceAuthorizationProcessor- Parameters:
requestContext- the client request context- Returns:
- the value for the
HttpHeaders.AUTHORIZATIONheader or {@link null} if one could not be created by this processor
-
createRequestHeader
public String createRequestHeader(jakarta.ws.rs.client.ClientRequestContext requestContext, List<String> authenticateHeader)
Description copied from interface:AuthorizationProcessorCreates a value for theHttpHeaders.AUTHORIZATIONheader.- Specified by:
createRequestHeaderin interfaceAuthorizationProcessor- Parameters:
requestContext- the client request contextauthenticateHeader- theHttpHeaders.WWW_AUTHENTICATEvalue- Returns:
- the value for the
HttpHeaders.AUTHORIZATIONheader or {@link null} if one could not be created by this processor
-
reset
public void reset(jakarta.ws.rs.client.ClientRequestContext requestContext)
Description copied from interface:AuthorizationProcessorProcessors may require a reset if authorization fails. By default, this does nothing.- Specified by:
resetin interfaceAuthorizationProcessor- Parameters:
requestContext- the client request context
-
-