public class HttpClientRequestSigner
extends com.mdsol.mauth.DefaultSigner
| Constructor and Description |
|---|
HttpClientRequestSigner(com.mdsol.mauth.SignerConfiguration configuration) |
HttpClientRequestSigner(java.util.UUID appUUID,
java.security.PrivateKey privateKey) |
HttpClientRequestSigner(java.util.UUID appUUID,
java.security.PrivateKey privateKey,
com.mdsol.mauth.util.EpochTimeProvider epochTimeProvider) |
HttpClientRequestSigner(java.util.UUID appUUID,
java.lang.String privateKey) |
HttpClientRequestSigner(java.util.UUID appUUID,
java.lang.String privateKey,
com.mdsol.mauth.util.EpochTimeProvider epochTimeProvider) |
HttpClientRequestSigner(java.util.UUID appUUID,
java.lang.String privateKey,
com.mdsol.mauth.util.EpochTimeProvider epochTimeProvider,
java.util.List<com.mdsol.mauth.MAuthVersion> signVersions) |
| Modifier and Type | Method and Description |
|---|---|
void |
signRequest(org.apache.http.client.methods.HttpUriRequest request)
Convenience method for clients using Apache
HttpClient. |
public HttpClientRequestSigner(com.mdsol.mauth.SignerConfiguration configuration)
public HttpClientRequestSigner(java.util.UUID appUUID,
java.lang.String privateKey)
public HttpClientRequestSigner(java.util.UUID appUUID,
java.lang.String privateKey,
com.mdsol.mauth.util.EpochTimeProvider epochTimeProvider)
public HttpClientRequestSigner(java.util.UUID appUUID,
java.security.PrivateKey privateKey)
public HttpClientRequestSigner(java.util.UUID appUUID,
java.security.PrivateKey privateKey,
com.mdsol.mauth.util.EpochTimeProvider epochTimeProvider)
public HttpClientRequestSigner(java.util.UUID appUUID,
java.lang.String privateKey,
com.mdsol.mauth.util.EpochTimeProvider epochTimeProvider,
java.util.List<com.mdsol.mauth.MAuthVersion> signVersions)
public void signRequest(org.apache.http.client.methods.HttpUriRequest request)
throws com.mdsol.mauth.exceptions.MAuthSigningException
HttpClient. Generates mAuth headers and
includes them into the provided HttpUriRequest.
NOTE: mAuth headers are time sensitive. The headers must be verified by the receiving service
within 5 minutes of being generated otherwise the request will fail.request - HttpUriRequest, e.g. HttpGet or HttpPostcom.mdsol.mauth.exceptions.MAuthSigningException - wraps ParseException and IOException