Package com.authlete.common.dto
Class CredentialSingleIssueRequest
- java.lang.Object
-
- com.authlete.common.dto.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.
/auth/introspection
/vci/single/parse
/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 Summary
Constructors Constructor Description CredentialSingleIssueRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
Get the access token that was presented at the credential endpoint.CredentialIssuanceOrder
getOrder()
Get the credential order that provides an instruction for issuing a credential.CredentialSingleIssueRequest
setAccessToken(String accessToken)
Set the access token that was presented at the credential endpoint.CredentialSingleIssueRequest
setOrder(CredentialIssuanceOrder order)
Set the credential order that provides an instruction for issuing a credential.
-
-
-
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.
-
-