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
Constructors -
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, waitMethods inherited from interface software.amazon.awssdk.http.auth.spi.signer.HttpSigner
doNotSign, sign, signAsync
-
Constructor Details
-
DefaultBearerHttpSigner
public DefaultBearerHttpSigner()
-
-
Method Details
-
sign
Description copied from interface:HttpSignerMethod that takes in inputs to sign a request with sync payload and returns a signed version of the request.- Specified by:
signin 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:HttpSignerMethod that takes in inputs to sign a request with async payload and returns a future containing the signed version of the request.- Specified by:
signAsyncin interfaceHttpSigner<TokenIdentity>- Parameters:
request- The inputs to sign a request.- Returns:
- A future containing the signed version of the request.
-