IdentityT - The type of the identity.public interface HttpSigner<IdentityT extends Identity>
| Modifier and Type | Field and Description |
|---|---|
static SignerProperty<Clock> |
SIGNING_CLOCK
A
Clock to be used to derive the signing time. |
| Modifier and Type | Method and Description |
|---|---|
default SignedRequest |
sign(Consumer<SignRequest.Builder<IdentityT>> consumer)
Method that takes in inputs to sign a request with sync payload and returns a signed version of the request.
|
SignedRequest |
sign(SignRequest<? extends IdentityT> request)
Method that takes in inputs to sign a request with sync payload and returns a signed version of the request.
|
CompletableFuture<AsyncSignedRequest> |
signAsync(AsyncSignRequest<? extends IdentityT> request)
Method that takes in inputs to sign a request with async payload and returns a future containing the signed version of the
request.
|
default CompletableFuture<AsyncSignedRequest> |
signAsync(Consumer<AsyncSignRequest.Builder<IdentityT>> consumer)
Method that takes in inputs to sign a request with async payload and returns a future containing the signed version of the
request.
|
static final SignerProperty<Clock> SIGNING_CLOCK
Clock to be used to derive the signing time. This property defaults to the system clock.
Note, signing time may not be relevant to some signers.
SignedRequest sign(SignRequest<? extends IdentityT> request)
request - The inputs to sign a request.default SignedRequest sign(Consumer<SignRequest.Builder<IdentityT>> consumer)
Similar to sign(SignRequest), but takes a lambda to configure a new SignRequest.Builder.
This removes the need to call SignRequest#builder(IdentityT)} and
SdkBuilder.build().
consumer - A Consumer to which an empty SignRequest.Builder will be given.CompletableFuture<AsyncSignedRequest> signAsync(AsyncSignRequest<? extends IdentityT> request)
request - The inputs to sign a request.default CompletableFuture<AsyncSignedRequest> signAsync(Consumer<AsyncSignRequest.Builder<IdentityT>> consumer)
Similar to signAsync(AsyncSignRequest), but takes a lambda to configure a new
AsyncSignRequest.Builder. This removes the need to call AsyncSignRequest#builder(IdentityT)} and
SdkBuilder.build().
consumer - A Consumer to which an empty BaseSignRequest.Builder will be given.Copyright © 2023. All rights reserved.