Class FapiResourceRequestBase<T extends FapiResourceRequestBase<T>>
java.lang.Object
com.authlete.hms.fapi.FapiResourceRequestBase<T>
- Type Parameters:
T
- The subclass.
- Direct Known Subclasses:
FapiResourceRequestSigner
,FapiResourceRequestVerifier
The base class for
FapiResourceRequestSigner
and
FapiResourceRequestVerifier
.- Since:
- 1.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value of theAuthorization
HTTP field of the request.Get the value of theContent-Digest
HTTP field of the request.Get the creation time of the signature, represented as seconds since the Unix epoch.getDpop()
Get the value of theDPoP
HTTP field of the request.Get the HTTP method of the request.Get the target URI of the HTTP request.setAuthorization
(String authorization) Set the value of theAuthorization
HTTP field of the request.setContentDigest
(String contentDigest) Set the value of theContent-Digest
HTTP field of the request.setCreated
(Long created) Set the creation time of the signature, represented as seconds since the Unix epoch.setCreated
(Instant created) Set the creation time of the signature.Set the value of theDPoP
HTTP field of the request.Set the HTTP method of the request.setTargetUri
(URI targetUri) Set the target URI of the HTTP request.
-
Constructor Details
-
FapiResourceRequestBase
public FapiResourceRequestBase()
-
-
Method Details
-
getMethod
Get the HTTP method of the request. This is used as the value of the"@method"
derived component.- Returns:
- The HTTP method of the request.
- See Also:
-
setMethod
-
getTargetUri
Get the target URI of the HTTP request. This is used as the value of the"@target-uri"
derived component.- Returns:
- The target URI of the HTTP request.
- See Also:
-
setTargetUri
-
getAuthorization
Get the value of theAuthorization
HTTP field of the request. This is used as the value of the"authorization"
component.- Returns:
- The value of the
Authorization
HTTP field of the request.
-
setAuthorization
-
getDpop
Get the value of theDPoP
HTTP field of the request. This is used as the value of the"dpop"
component.- Returns:
- The value of the
DPoP
HTTP field of the request.
-
setDpop
-
getContentDigest
Get the value of theContent-Digest
HTTP field of the request. This is used as the value of the"content-digest"
component.- Returns:
- The value of the
Content-Digest
HTTP field of the request. - See Also:
-
setContentDigest
-
getCreated
Get the creation time of the signature, represented as seconds since the Unix epoch. This is used as the value of thecreated
parameter of the signature metadata.- Returns:
- The creation time of the signature.
- See Also:
-
setCreated
Set the creation time of the signature, represented as seconds since the Unix epoch. This is used as the value of thecreated
parameter of the signature metadata.If this is not set before the signing or verifying operation, the current time at which the operation will be executed is used as the signature creation time.
- Parameters:
created
- The creation time of the signature.- Returns:
this
object.- See Also:
-
setCreated
Set the creation time of the signature. This is used as the value of thecreated
parameter of the signature metadata.If this is not set before the signing or verifying operation, the current time at which the operation will be executed is used as the signature creation time.
- Parameters:
created
- The creation time of the signature.- Returns:
this
object.- See Also:
-