Class CredentialSingleIssueRequest

  • All Implemented Interfaces:
    Serializable

    public class CredentialSingleIssueRequest
    extends Object
    implements Serializable
    A request to Authlete's /vci/single/issue API.

    The Authlete API is supposed to be called by the implementation of the credential endpoint. The endpoint is defined in the "OpenID for Verifiable Credential Issuance" (OID4VCI) specification.

    The implementation of the credential endpoint is expected to call the following Authlete APIs in the order.

    1. /auth/introspection
    2. /vci/single/parse
    3. /vci/single/issue

    The role of the /vci/single/issue API is to issue a credential or a transaction ID and to prepare a response that should be returned from the credential endpoint.

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

      • CredentialSingleIssueRequest

        public CredentialSingleIssueRequest()
    • Method Detail

      • getAccessToken

        public String getAccessToken()
        Get the access token that was presented at the credential endpoint.
        Returns:
        The access token that was presented at the credential endpoint.
      • setAccessToken

        public CredentialSingleIssueRequest setAccessToken​(String accessToken)
        Set the access token that was presented at the credential endpoint.
        Parameters:
        accessToken - The access token that was presented at the credential endpoint.
        Returns:
        this object.
      • getOrder

        public CredentialIssuanceOrder getOrder()
        Get the credential order that provides an instruction for issuing a credential.
        Returns:
        The instruction for credential issuance.
      • setOrder

        public CredentialSingleIssueRequest setOrder​(CredentialIssuanceOrder order)
        Set the credential order that provides an instruction for issuing a credential.
        Parameters:
        order - The instruction for credential issuance.
        Returns:
        this object.