Class FapiResourceResponseBase<T extends FapiResourceResponseBase<T>>
java.lang.Object
com.authlete.hms.fapi.FapiResourceResponseBase<T>
- Type Parameters:
T- The subclass.
- Direct Known Subclasses:
FapiResourceResponseSigner,FapiResourceResponseVerifier
public abstract class FapiResourceResponseBase<T extends FapiResourceResponseBase<T>>
extends Object
The base class for
FapiResourceResponseSigner and
FapiResourceResponseVerifier.- Since:
- 1.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value of theAuthorizationHTTP field of the request.Get the creation time of the signature, represented as seconds since the Unix epoch.getDpop()Get the value of theDPoPHTTP field of the request.Get the HTTP method of the request.Get the value of theContent-DigestHTTP field of the request.Get the value of theContent-DigestHTTP field of the response.intGet the status code of the HTTP response.Get the target URI (the original request URL) of the HTTP request.setAuthorization(String authorization) Set the value of theAuthorizationHTTP 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 theDPoPHTTP field of the request.Set the HTTP method of the request.setRequestContentDigest(String contentDigest) Set the value of theContent-DigestHTTP field of the request.setResponseContentDigest(String contentDigest) Set the value of theContent-DigestHTTP field of the response.setStatus(int status) Set the status code of the HTTP response.setTargetUri(URI targetUri) Set the target URI (the original request URL) of the HTTP request.
-
Constructor Details
-
FapiResourceResponseBase
public FapiResourceResponseBase()
-
-
Method Details
-
getMethod
Get the HTTP method of the request. This is used as the value of the"@method";reqderived component.- Returns:
- The HTTP method of the request.
- See Also:
-
setMethod
-
getTargetUri
Get the target URI (the original request URL) of the HTTP request. This is used as the value of the"@target-uri";reqderived component.- Returns:
- The target URI (the original request URL) of the HTTP request.
- See Also:
-
setTargetUri
-
getAuthorization
Get the value of theAuthorizationHTTP field of the request. This is used as the value of the"authorization";reqcomponent.- Returns:
- The value of the
AuthorizationHTTP field of the request.
-
setAuthorization
-
getDpop
Get the value of theDPoPHTTP field of the request. This is used as the value of the"dpop";reqcomponent.- Returns:
- The value of the
DPoPHTTP field of the request.
-
setDpop
-
getRequestContentDigest
Get the value of theContent-DigestHTTP field of the request. This is used as the value of the"content-digest";reqcomponent.- Returns:
- The value of the
Content-DigestHTTP field of the request. - See Also:
-
setRequestContentDigest
Set the value of theContent-DigestHTTP field of the request. This is used as the value of the"content-digest";reqcomponent.- Parameters:
contentDigest- The value of theContent-DigestHTTP field of the request.- Returns:
thisobject.- See Also:
-
getStatus
public int getStatus()Get the status code of the HTTP response. This is used as the value of the"@status"derived component.- Returns:
- The status code of the HTTP response.
- See Also:
-
setStatus
Set the status code of the HTTP response. This is used as the value of the"@status"derived component.- Parameters:
status- The status code of the HTTP response.- Returns:
thisobject.- See Also:
-
getResponseContentDigest
Get the value of theContent-DigestHTTP field of the response. This is used as the value of the"content-digest"component.- Returns:
- The value of the
Content-DigestHTTP field of the response. - See Also:
-
setResponseContentDigest
Set the value of theContent-DigestHTTP field of the response. This is used as the value of the"content-digest"component.- Parameters:
contentDigest- The value of theContent-DigestHTTP field of the response.- Returns:
thisobject.- See Also:
-
getCreated
Get the creation time of the signature, represented as seconds since the Unix epoch. This is used as the value of thecreatedparameter 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 thecreatedparameter 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:
thisobject.- See Also:
-
setCreated
Set the creation time of the signature. This is used as the value of thecreatedparameter 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:
thisobject.- See Also:
-