PayloadT - The type of payload of the request.IdentityT - The type of the identity.@Immutable @ThreadSafe public interface BaseSignRequest<PayloadT,IdentityT extends Identity>
HttpSigner, independent of payload type. See
specific sub-interfaces SignRequest for sync payload and AsyncSignRequest for async payload.| Modifier and Type | Interface and Description |
|---|---|
static interface |
BaseSignRequest.Builder<B extends BaseSignRequest.Builder<B,PayloadT,IdentityT>,PayloadT,IdentityT extends Identity>
A builder for a
BaseSignRequest. |
| Modifier and Type | Method and Description |
|---|---|
default <T> boolean |
hasProperty(SignerProperty<T> property)
Ensure that the
SignerProperty is present in the BaseSignRequest. |
IdentityT |
identity()
Returns the identity.
|
Optional<PayloadT> |
payload()
Returns the body payload of the request.
|
<T> T |
property(SignerProperty<T> property)
Returns the value of a property that the
HttpSigner can use during signing. |
SdkHttpRequest |
request()
Returns the HTTP request object, without the request body payload.
|
default <T> T |
requireProperty(SignerProperty<T> property)
Ensure that the
SignerProperty is present in the BaseSignRequest. |
default <T> T |
requireProperty(SignerProperty<T> property,
T defaultValue)
Ensure that the
SignerProperty is present in the BaseSignRequest. |
SdkHttpRequest request()
Optional<PayloadT> payload()
IdentityT identity()
<T> T property(SignerProperty<T> property)
HttpSigner can use during signing.default <T> boolean hasProperty(SignerProperty<T> property)
SignerProperty is present in the BaseSignRequest.
The value, T, is return when present, and an exception is thrown otherwise.
default <T> T requireProperty(SignerProperty<T> property)
SignerProperty is present in the BaseSignRequest.
The value, T, is return when present, and an exception is thrown otherwise.
default <T> T requireProperty(SignerProperty<T> property, T defaultValue)
SignerProperty is present in the BaseSignRequest.
The value, T, is return when present, and the default is returned otherwise.
Copyright © 2023. All rights reserved.