Package thredds.util
Class LocalApiSigner
java.lang.Object
thredds.util.LocalApiSigner
Signature based authentication for the TDS local API
Use an HMAC SHA256 algorithm to generate a hash based on components of
properties of the request and an ISO formatted date/time string (rounded
down to the nearest time boundary [five second window by default]) The
client and server must have access to the same key used to initialize the
hash generator.
- Since:
- 5.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn HMAC SHA256 algorithm is used to generate a hash of the path and query components of the request, along with the ISO formatted date/time (rounded down to the nearest time boundary [five second window by default]).booleanverifySignatureGet(String url, String expectedSignature)
-
Field Details
-
LOCAL_API_SIGNATURE_HEADER_V1
- See Also:
-
-
Constructor Details
-
LocalApiSigner
-
-
Method Details
-
generateSignatureGet
An HMAC SHA256 algorithm is used to generate a hash of the path and query components of the request, along with the ISO formatted date/time (rounded down to the nearest time boundary [five second window by default]).- Parameters:
url- string of the GET request url- Returns:
- signature hash
-
verifySignatureGet
-