com.noelios.restlet.authentication
Class HttpAmazonS3Helper

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

public class HttpAmazonS3Helper
extends AuthenticationHelper

Implements the HTTP authentication for the Amazon S3 service.

Author:
Jerome Louvel

Constructor Summary
HttpAmazonS3Helper()
          Constructor.
 
Method Summary
 java.lang.String format(ChallengeRequest request)
          Formats a challenge request as a HTTP header value.
 void formatCredentials(java.lang.StringBuilder sb, ChallengeResponse challenge, Request request, Series<Parameter> httpHeaders)
          Formats a challenge response as raw credentials.
 
Methods inherited from class com.noelios.restlet.authentication.AuthenticationHelper
authenticate, challenge, format, formatParameters, getChallengeScheme, getLogger, isClientSide, isServerSide, parseRequest, parseResponse, setChallengeScheme, setClientSide, setServerSide
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpAmazonS3Helper

public HttpAmazonS3Helper()
Constructor.

Method Detail

format

public java.lang.String format(ChallengeRequest request)
Description copied from class: AuthenticationHelper
Formats a challenge request as a HTTP header value.

Overrides:
format in class AuthenticationHelper
Parameters:
request - The challenge request to format.
Returns:
The authenticate header value.

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.


Copyright © 2005-2008 Noelios Technologies.