Class CredentialBatchParseRequest

  • All Implemented Interfaces:
    Serializable

    public class CredentialBatchParseRequest
    extends Object
    implements Serializable
    Request to the /vci/batch/parse API.

    The Authlete API is supposed to be used to parse a batch credential request that the batch credential endpoint received.

    Note that the implementation of the batch credential endpoint should call the /auth/introspection API to check whether the access token is valid BEFORE calling the /vci/batch/parse API. The validation on the access token by the /vci/batch/parse API is limited and not exhaustive. For example, the /vci/batch/parse API does not check certificate binding (RFC 8705).

    Since:
    3.71, Authlete 3.0
    See Also:
    OpenID for Verifiable Credential Issuance, Serialized Form
    • Constructor Detail

      • CredentialBatchParseRequest

        public CredentialBatchParseRequest()
    • Method Detail

      • getAccessToken

        public String getAccessToken()
        Get the access token that came along with the batch credential request.
        Returns:
        The access token that the batch credential endpoint received.
      • setAccessToken

        public CredentialBatchParseRequest setAccessToken​(String accessToken)
        Set the access token that came along with the batch credential request.
        Parameters:
        accessToken - The access token that the batch credential endpoint received.
        Returns:
        this object.
      • getRequestContent

        public String getRequestContent()
        Get the message body of the batch credential request. The expected format is JSON Object that contains the "credential_requests" parameter.
        Returns:
        The message body of the batch credential request.
      • setRequestContent

        public CredentialBatchParseRequest setRequestContent​(String requestContent)
        Set the message body of the batch credential request. The expected format is JSON Object that contains the "credential_requests" parameter.
        Parameters:
        requestContent - The message body of the batch credential request.
        Returns:
        this object.