Package com.google.auth.oauth2
Class AwsDates
java.lang.Object
com.google.auth.oauth2.AwsDates
Formats dates required for AWS Signature V4 request signing.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static AwsDates
fromDateHeader
(String date) (package private) static AwsDates
fromXAmzDate
(String xAmzDate) (package private) static AwsDates
(package private) String
Returns the x-amz-date in YYYYMMDD format.(package private) String
Returns the original date.(package private) String
Returns the x-amz-date in yyyyMMdd'T'HHmmss'Z' format.
-
Field Details
-
X_AMZ_DATE_FORMAT
- See Also:
-
HTTP_DATE_FORMAT
- See Also:
-
xAmzDate
-
originalDate
-
-
Constructor Details
-
AwsDates
-
AwsDates
-
-
Method Details
-
getOriginalDate
String getOriginalDate()Returns the original date. This can either be the x-amz-date or a specified date in the format of E, dd MMM yyyy HH:mm:ss z. -
getXAmzDate
String getXAmzDate()Returns the x-amz-date in yyyyMMdd'T'HHmmss'Z' format. -
getFormattedDate
String getFormattedDate()Returns the x-amz-date in YYYYMMDD format. -
fromXAmzDate
- Throws:
ParseException
-
fromDateHeader
- Throws:
ParseException
-
generateXAmzDate
-