Class DefaultBearerHttpSigner
java.lang.Object
software.amazon.awssdk.http.auth.internal.signer.DefaultBearerHttpSigner
- All Implemented Interfaces:
BearerHttpSigner
,HttpSigner<TokenIdentity>
A default implementation of
BearerHttpSigner
.-
Field Summary
Fields inherited from interface software.amazon.awssdk.http.auth.spi.signer.HttpSigner
SIGNING_CLOCK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsign
(SignRequest<? extends TokenIdentity> request) Method that takes in inputs to sign a request with sync payload and returns a signed version of the request.signAsync
(AsyncSignRequest<? extends TokenIdentity> request) Method that takes in inputs to sign a request with async payload and returns a future containing the signed version of the request.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.http.auth.spi.signer.HttpSigner
sign, signAsync
-
Constructor Details
-
DefaultBearerHttpSigner
public DefaultBearerHttpSigner()
-
-
Method Details
-
sign
Description copied from interface:HttpSigner
Method that takes in inputs to sign a request with sync payload and returns a signed version of the request.- Specified by:
sign
in interfaceHttpSigner<TokenIdentity>
- Parameters:
request
- The inputs to sign a request.- Returns:
- A signed version of the request.
-
signAsync
public CompletableFuture<AsyncSignedRequest> signAsync(AsyncSignRequest<? extends TokenIdentity> request) Description copied from interface:HttpSigner
Method that takes in inputs to sign a request with async payload and returns a future containing the signed version of the request.- Specified by:
signAsync
in interfaceHttpSigner<TokenIdentity>
- Parameters:
request
- The inputs to sign a request.- Returns:
- A future containing the signed version of the request.
-