Interface BaseSignRequest<PayloadT,IdentityT extends Identity>
- Type Parameters:
PayloadT
- The type of payload of the request.IdentityT
- The type of the identity.
- All Known Subinterfaces:
AsyncSignRequest<IdentityT>
,SignRequest<IdentityT>
- All Known Implementing Classes:
DefaultAsyncSignRequest
,DefaultSignRequest
Base interface to represent input parameters to sign a request using
HttpSigner
, independent of payload type. See
specific sub-interfaces SignRequest
for sync payload and AsyncSignRequest
for async payload.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
BaseSignRequest.Builder<B extends BaseSignRequest.Builder<B,
PayloadT, IdentityT>, PayloadT, IdentityT extends Identity> A builder for aBaseSignRequest
. -
Method Summary
Modifier and TypeMethodDescriptiondefault <T> boolean
hasProperty
(SignerProperty<T> property) Ensure that theSignerProperty
is present in theBaseSignRequest
.identity()
Returns the identity.payload()
Returns the body payload of the request.<T> T
property
(SignerProperty<T> property) Returns the value of a property that theHttpSigner
can use during signing.request()
Returns the HTTP request object, without the request body payload.default <T> T
requireProperty
(SignerProperty<T> property) Ensure that theSignerProperty
is present in theBaseSignRequest
.default <T> T
requireProperty
(SignerProperty<T> property, T defaultValue) Ensure that theSignerProperty
is present in theBaseSignRequest
.
-
Method Details
-
request
SdkHttpRequest request()Returns the HTTP request object, without the request body payload. -
payload
-
identity
IdentityT identity()Returns the identity. -
property
Returns the value of a property that theHttpSigner
can use during signing. -
hasProperty
Ensure that theSignerProperty
is present in theBaseSignRequest
.The value,
BaseSignRequest
, is return when present, and an exception is thrown otherwise. -
requireProperty
Ensure that theSignerProperty
is present in theBaseSignRequest
.The value,
BaseSignRequest
, is return when present, and an exception is thrown otherwise. -
requireProperty
Ensure that theSignerProperty
is present in theBaseSignRequest
.The value,
BaseSignRequest
, is return when present, and the default is returned otherwise.
-