Class BasicAuthorizationProcessor
- java.lang.Object
-
- dev.resteasy.client.util.authentication.basic.BasicAuthorizationProcessor
-
- All Implemented Interfaces:
AuthorizationProcessor
public class BasicAuthorizationProcessor extends Object implements AuthorizationProcessor
AnAuthorizationProcessorwhich creates aHttpHeaders.AUTHORIZATIONheader for BASIC authentication.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description BasicAuthorizationProcessor(UserCredentials credentials)Creates a new BASIC 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.resteasy.client.util.authentication.AuthorizationProcessor
reset
-
-
-
-
Constructor Detail
-
BasicAuthorizationProcessor
public BasicAuthorizationProcessor(UserCredentials credentials)
Creates a new BASIC processor.- Parameters:
credentials- the credentials to use for authentication
-
-
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
-
-