|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.noelios.restlet.authentication.AuthenticationHelper
com.noelios.restlet.authentication.HttpBasicHelper
public class HttpBasicHelper
Implements the HTTP BASIC authentication.
Constructor Summary | |
---|---|
HttpBasicHelper()
Constructor. |
Method Summary | |
---|---|
void |
formatCredentials(java.lang.StringBuilder sb,
ChallengeResponse challenge,
Request request,
Series<Parameter> httpHeaders)
Formats a challenge response as raw credentials. |
void |
parseResponse(ChallengeResponse cr,
Request request)
Parses an authorization header into a challenge response. |
Methods inherited from class com.noelios.restlet.authentication.AuthenticationHelper |
---|
authenticate, challenge, format, format, formatParameters, getChallengeScheme, getLogger, isClientSide, isServerSide, parseRequest, setChallengeScheme, setClientSide, setServerSide |
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 formatCredentials(java.lang.StringBuilder sb, ChallengeResponse challenge, Request request, Series<Parameter> httpHeaders)
AuthenticationHelper
formatCredentials
in class AuthenticationHelper
sb
- The String builder to update.challenge
- The challenge response to format.request
- The parent request.httpHeaders
- The current request HTTP headers.public void parseResponse(ChallengeResponse cr, Request request)
AuthenticationHelper
parseResponse
in class AuthenticationHelper
request
- The request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |