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

public abstract class FapiResourceRequestBase<T extends FapiResourceRequestBase<T>> extends Object
Since:
1.4
See Also:
  • Constructor Details

    • FapiResourceRequestBase

      public FapiResourceRequestBase()
  • Method Details

    • getMethod

      public String 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

      public T setMethod(String method)
      Set the HTTP method of the request. This is used as the value of the "@method" derived component.
      Parameters:
      method - The HTTP method of the request.
      Returns:
      this object.
      See Also:
    • getTargetUri

      public URI 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

      public T setTargetUri(URI targetUri)
      Set the target URI of the HTTP request. This is used as the value of the "@target-uri" derived component.
      Parameters:
      targetUri - The target URI of the HTTP request.
      Returns:
      this object.
      See Also:
    • getAuthorization

      public String getAuthorization()
      Get the value of the Authorization 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

      public T setAuthorization(String authorization)
      Set the value of the Authorization HTTP field of the request. This is used as the value of the "authorization" component.
      Parameters:
      authorization - The value of the Authorization HTTP field of the request.
      Returns:
      this object.
    • getDpop

      public String getDpop()
      Get the value of the DPoP 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

      public T setDpop(String dpop)
      Set the value of the DPoP HTTP field of the request. This is used as the value of the "dpop" component.
      Parameters:
      dpop - The value of the DPoP HTTP field of the request.
      Returns:
      this object.
    • getContentDigest

      public String getContentDigest()
      Get the value of the Content-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

      public T setContentDigest(String contentDigest)
      Set the value of the Content-Digest HTTP field of the request. This is used as the value of the "content-digest" component.
      Parameters:
      contentDigest - The value of the Content-Digest HTTP field of the request.
      Returns:
      this object.
      See Also:
    • getCreated

      public Long getCreated()
      Get the creation time of the signature, represented as seconds since the Unix epoch. This is used as the value of the created parameter of the signature metadata.
      Returns:
      The creation time of the signature.
      See Also:
    • setCreated

      public T setCreated(Long created)
      Set the creation time of the signature, represented as seconds since the Unix epoch. This is used as the value of the created 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

      public T setCreated(Instant created)
      Set the creation time of the signature. This is used as the value of the created 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: