public class HttpBasicHelper extends AuthenticatorHelper
| Constructor and Description |
|---|
HttpBasicHelper()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
formatRequest(ChallengeWriter cw,
ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders)
Formats a challenge request as raw credentials.
|
void |
formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
Formats a challenge response as raw credentials.
|
void |
parseRequest(ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders)
Parses an authenticate header into a challenge request.
|
void |
parseResponse(ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
Parses an authorization header into a challenge response.
|
getChallengeScheme, getLogger, isClientSide, isServerSide, setChallengeScheme, setClientSide, setServerSide, updateReferencepublic void formatRequest(ChallengeWriter cw, ChallengeRequest challenge, Response response, Series<Header> httpHeaders) throws IOException
AuthenticatorHelperformatRequest in class AuthenticatorHelpercw - The header writer to update.challenge - The challenge request to format.response - The parent response.httpHeaders - The current request HTTP headers.IOExceptionpublic void formatResponse(ChallengeWriter cw, ChallengeResponse challenge, Request request, Series<Header> httpHeaders)
AuthenticatorHelperformatResponse in class AuthenticatorHelpercw - The header writer to update.challenge - The challenge response to format.request - The parent request.httpHeaders - The current request HTTP headers.public void parseRequest(ChallengeRequest challenge, Response response, Series<Header> httpHeaders)
AuthenticatorHelperHeaderConstants.HEADER_WWW_AUTHENTICATE.parseRequest in class AuthenticatorHelperchallenge - The challenge request to update.response - The parent response.httpHeaders - The current response HTTP headers.public void parseResponse(ChallengeResponse challenge, Request request, Series<Header> httpHeaders)
AuthenticatorHelperHeaderConstants.HEADER_AUTHORIZATION.parseResponse in class AuthenticatorHelperchallenge - The challenge response to update.request - The parent request.httpHeaders - The current request HTTP headers.Copyright © 2005–2025. All rights reserved.