@Singleton public class SignedHeaderAuth extends Object implements HttpRequestFilter
Modifier and Type | Field and Description |
---|---|
static String |
SIGNING_DESCRIPTION |
Constructor and Description |
---|
SignedHeaderAuth(SignatureWire signatureWire,
com.google.common.base.Supplier<Credentials> creds,
com.google.common.base.Supplier<PrivateKey> supplyKey,
javax.inject.Provider<String> timeStampProvider,
HttpUtils utils,
Crypto crypto) |
Modifier and Type | Method and Description |
---|---|
String |
createStringToSign(String request,
String hashedPath,
String contentHash,
String timestamp) |
HttpRequest |
filter(HttpRequest input) |
String |
sign(String toSign) |
public static final String SIGNING_DESCRIPTION
@Inject public SignedHeaderAuth(SignatureWire signatureWire, com.google.common.base.Supplier<Credentials> creds, com.google.common.base.Supplier<PrivateKey> supplyKey, javax.inject.Provider<String> timeStampProvider, HttpUtils utils, Crypto crypto)
public HttpRequest filter(HttpRequest input) throws HttpException
filter
in interface HttpRequestFilter
HttpException
public String createStringToSign(String request, String hashedPath, String contentHash, String timestamp)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.