public abstract class AbstractSigner extends java.lang.Object implements Signer
| Modifier and Type | Field and Description |
|---|---|
protected static java.nio.charset.Charset |
DEFAULT_ENCODING
default encoding
|
| Constructor and Description |
|---|
AbstractSigner() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
base64(byte[] source) |
protected byte[] |
getBinaryRequestPayload(Request request) |
protected java.io.InputStream |
getBinaryRequestPayloadStream(Request request) |
protected java.io.InputStream |
getBinaryRequestPayloadStreamWithoutQueryParams(Request request) |
protected byte[] |
getBinaryRequestPayloadWithoutQueryParams(Request request) |
protected java.lang.String |
getCanonicalizedEndPoint(java.net.URI endpoint) |
protected java.lang.String |
getCanonicalizedQueryString(java.util.Map<java.lang.String,java.lang.String> params) |
protected java.lang.String |
getCanonicalizedQueryString(Request request) |
protected java.lang.String |
getCanonicalizedResourcePath(java.lang.String resourcePath) |
protected java.lang.String |
getRequestPayload(Request request) |
protected java.lang.String |
getRequestPayloadWithoutQueryParams(Request request) |
protected java.util.Date |
getSignatureDate(int timeOffset) |
byte[] |
hash(byte[] data) |
protected byte[] |
hash(java.io.InputStream input) |
byte[] |
hash(java.lang.String text) |
protected static final java.nio.charset.Charset DEFAULT_ENCODING
public byte[] hash(java.lang.String text)
protected byte[] hash(java.io.InputStream input)
throws AuthClientException
AuthClientExceptionpublic byte[] hash(byte[] data)
protected java.lang.String getCanonicalizedQueryString(java.util.Map<java.lang.String,java.lang.String> params)
protected java.lang.String getCanonicalizedQueryString(Request request)
protected java.lang.String getCanonicalizedResourcePath(java.lang.String resourcePath)
protected java.lang.String getRequestPayload(Request request)
protected byte[] getBinaryRequestPayload(Request request)
protected java.lang.String getRequestPayloadWithoutQueryParams(Request request)
protected byte[] getBinaryRequestPayloadWithoutQueryParams(Request request)
protected java.io.InputStream getBinaryRequestPayloadStream(Request request)
protected java.io.InputStream getBinaryRequestPayloadStreamWithoutQueryParams(Request request) throws AuthClientException
AuthClientExceptionprotected java.lang.String getCanonicalizedEndPoint(java.net.URI endpoint)
protected java.util.Date getSignatureDate(int timeOffset)
protected abstract java.lang.String base64(byte[] source)