Package com.cloudera.cdp.authentication
Class Signer
- java.lang.Object
-
- com.cloudera.cdp.authentication.Signer
-
public class Signer extends Object
A request signer appropriate for use with the CDP client.
-
-
Constructor Summary
Constructors Constructor Description Signer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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
-
-