public final class AWS4SignerRequestParams
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
formattedSigningDate
UTC Formatted Signing date with time stamp stripped
|
private java.lang.String |
formattedSigningDateTime
UTC formatted version of the signing time stamp.
|
private java.lang.String |
regionName
The AWS region to be used for computing the signature.
|
private SignableRequest<?> |
request
The request for which the signature needs to be computed.
|
private java.lang.String |
scope
The scope of the signature.
|
private java.lang.String |
serviceName
The name of the AWS service.
|
private java.lang.String |
signingAlgorithm
The signing algorithm to be used for computing the signature.
|
private long |
signingDateTimeMilli
The datetime in milliseconds for which the signature needs to be
computed.
|
Constructor and Description |
---|
AWS4SignerRequestParams(SignableRequest<?> request,
java.util.Date signingDateOverride,
java.lang.String regionNameOverride,
java.lang.String serviceName,
java.lang.String signingAlgorithm)
Generates an instance of AWS4signerRequestParams that holds the
parameters used for computing a AWS 4 signature for a request
|
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
generateScope(SignableRequest<?> request,
java.lang.String dateStamp,
java.lang.String serviceName,
java.lang.String regionName)
Returns the scope to be used for the signing.
|
java.lang.String |
getFormattedSigningDate()
Returns the formatted date in UTC zone of the signing date.
|
java.lang.String |
getFormattedSigningDateTime()
Returns the formatted date and time of the signing date in UTC zone.
|
java.lang.String |
getRegionName()
Returns the AWS region name to be used while computing the signature.
|
SignableRequest<?> |
getRequest()
Returns the request for which the signing needs to be done.
|
java.lang.String |
getScope()
Returns the scope of the signing.
|
java.lang.String |
getServiceName()
Returns the AWS Service name to be used while computing the signature.
|
java.lang.String |
getSigningAlgorithm()
Returns the signing algorithm used for computing the signature.
|
private long |
getSigningDate(SignableRequest<?> request)
Returns the signing date from the request.
|
long |
getSigningDateTimeMilli()
Returns the signing date time in millis for which the signature needs to
be computed.
|
private final SignableRequest<?> request
private final long signingDateTimeMilli
private final java.lang.String scope
private final java.lang.String regionName
private final java.lang.String serviceName
private final java.lang.String formattedSigningDateTime
private final java.lang.String formattedSigningDate
private final java.lang.String signingAlgorithm
public AWS4SignerRequestParams(SignableRequest<?> request, java.util.Date signingDateOverride, java.lang.String regionNameOverride, java.lang.String serviceName, java.lang.String signingAlgorithm)
private final long getSigningDate(SignableRequest<?> request)
private java.lang.String generateScope(SignableRequest<?> request, java.lang.String dateStamp, java.lang.String serviceName, java.lang.String regionName)
public SignableRequest<?> getRequest()
public java.lang.String getScope()
public java.lang.String getFormattedSigningDateTime()
public long getSigningDateTimeMilli()
public java.lang.String getRegionName()
public java.lang.String getServiceName()
public java.lang.String getFormattedSigningDate()
public java.lang.String getSigningAlgorithm()