com.noelios.restlet.authentication
Class HttpBasicHelper
java.lang.Object
com.noelios.restlet.authentication.AuthenticationHelper
com.noelios.restlet.authentication.HttpBasicHelper
public class HttpBasicHelper
- extends AuthenticationHelper
Implements the HTTP BASIC authentication.
- Author:
- Jerome Louvel
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 |
HttpBasicHelper
public HttpBasicHelper()
- Constructor.
formatCredentials
public void formatCredentials(StringBuilder sb,
ChallengeResponse challenge,
Request request,
Series<Parameter> httpHeaders)
- Description copied from class:
AuthenticationHelper
- Formats a challenge response as raw credentials.
- Specified by:
formatCredentials
in class AuthenticationHelper
- Parameters:
sb
- The String builder to update.challenge
- The challenge response to format.request
- The parent request.httpHeaders
- The current request HTTP headers.
parseResponse
public void parseResponse(ChallengeResponse cr,
Request request)
- Description copied from class:
AuthenticationHelper
- Parses an authorization header into a challenge response.
- Overrides:
parseResponse
in class AuthenticationHelper
request
- The request.
Copyright © 2005-2008 Noelios Technologies.