|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.engine.Helper
org.restlet.engine.security.AuthenticatorHelper
org.restlet.engine.security.HttpBasicHelper
public class HttpBasicHelper
Implements the HTTP BASIC authentication.
| Constructor Summary | |
|---|---|
HttpBasicHelper()
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.restlet.engine.security.AuthenticatorHelper |
|---|
getChallengeScheme, getLogger, isClientSide, isServerSide, setChallengeScheme, setClientSide, setServerSide, updateReference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpBasicHelper()
| Method Detail |
|---|
public void formatRequest(ChallengeWriter cw,
ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders)
throws IOException
AuthenticatorHelper
formatRequest in class AuthenticatorHelpercw - The header writer to update.challenge - The challenge request to format.response - The parent response.httpHeaders - The current request HTTP headers.
IOException
public void formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
AuthenticatorHelper
formatResponse 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||