com.noelios.restlet.authentication
Class HttpBasicHelper

java.lang.Object
  extended by com.noelios.restlet.authentication.AuthenticationHelper
      extended by com.noelios.restlet.authentication.HttpBasicHelper

public class HttpBasicHelper
extends AuthenticationHelper

Implements the HTTP BASIC authentication.

Author:
Jerome Louvel

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

HttpBasicHelper

public HttpBasicHelper()
Constructor.

Method Detail

formatCredentials

public void formatCredentials(java.lang.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.