T
- the type of payload in the request.public interface Request<T> extends Message<T>
Request
aggregates various parameters that may be used by a particular cryptographic algorithm. It and
any of its subtypes implemented as a single object submitted to an algorithm effectively reflect the
Parameter Object design pattern. This
provides for a much cleaner request/result algorithm API instead of polluting the API with an excessive number of
overloaded methods that would exist otherwise.
The Request
interface specifically allows for JCA Provider
and SecureRandom
instances
to be used during request execution, which allows more flexibility than forcing a single Provider
or
SecureRandom
for all executions. Request
subtypes provide additional parameters as necessary
depending on the type of cryptographic algorithm invoked.
getProvider()
,
getSecureRandom()
Modifier and Type | Method and Description |
---|---|
Provider |
getProvider()
Returns the JCA provider that should be used for cryptographic operations during the request or
null if the JCA subsystem preferred provider should be used. |
SecureRandom |
getSecureRandom()
Returns the
SecureRandom to use when performing cryptographic operations during the request, or
null if a default SecureRandom should be used. |
getPayload
Provider getProvider()
null
if the JCA subsystem preferred provider should be used.null
if the JCA subsystem preferred provider should be used.SecureRandom getSecureRandom()
SecureRandom
to use when performing cryptographic operations during the request, or
null
if a default SecureRandom
should be used.SecureRandom
to use when performing cryptographic operations during the request, or
null
if a default SecureRandom
should be used.Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.