Package com.cloudera.cdp.authentication
Class Signer
java.lang.Object
com.cloudera.cdp.authentication.Signer
A request signer appropriate for use with the CDP client.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeAuthHeader
(String httpMethod, String contentType, String date, String path, String accessKeyId, PrivateKey privateKey) Computes the value for the x-altus-auth header for a request.
-
Constructor Details
-
Signer
public Signer()
-
-
Method Details
-
computeAuthHeader
public String computeAuthHeader(String httpMethod, String contentType, String date, String path, String accessKeyId, PrivateKey privateKey) Computes the value for the x-altus-auth header for a request.- Parameters:
httpMethod
- the HTTP methodcontentType
- the value of the content type headerdate
- the value of the x-altus-date headerpath
- the request portion of the URI, e.g. /iam/getUseraccessKeyId
- the access key IDprivateKey
- the access key private key- Returns:
- the value for the x-altus-auth header
-