@Singleton public class RestAuthentication extends Object implements HttpRequestFilter, RequestSigner
Constructor and Description |
---|
RestAuthentication(com.google.common.base.Supplier<Credentials> creds,
javax.inject.Provider<String> timeStampProvider,
Crypto crypto) |
Modifier and Type | Method and Description |
---|---|
String |
createStringToSign(HttpRequest input) |
HttpRequest |
filter(HttpRequest request) |
String |
sign(String toSign) |
@Inject public RestAuthentication(com.google.common.base.Supplier<Credentials> creds, javax.inject.Provider<String> timeStampProvider, Crypto crypto)
public HttpRequest filter(HttpRequest request) throws HttpException
filter
in interface HttpRequestFilter
HttpException
public String createStringToSign(HttpRequest input)
createStringToSign
in interface RequestSigner
public String sign(String toSign)
sign
in interface RequestSigner
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.