org.jclouds.http.filters
Class BasicAuthentication

java.lang.Object
  extended by org.jclouds.http.filters.BasicAuthentication
All Implemented Interfaces:
HttpRequestFilter

@Singleton
public class BasicAuthentication
extends Object
implements HttpRequestFilter

Uses Basic Authentication to sign the request.

Author:
Adrian Cole
See Also:

Constructor Summary
BasicAuthentication(String user, String password, Crypto crypto)
           
 
Method Summary
 HttpRequest filter(HttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAuthentication

@Inject
public BasicAuthentication(@Named(value="jclouds.identity")
                                  String user,
                                  @Named(value="jclouds.credential")
                                  String password,
                                  Crypto crypto)
                    throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException
Method Detail

filter

public HttpRequest filter(HttpRequest request)
                   throws HttpException
Specified by:
filter in interface HttpRequestFilter
Throws:
HttpException


Copyright © 2009-2012 jclouds. All Rights Reserved.