Package com.authlete.common.dto
Class CredentialSingleParseRequest
- java.lang.Object
-
- com.authlete.common.dto.CredentialSingleParseRequest
-
- All Implemented Interfaces:
Serializable
public class CredentialSingleParseRequest extends Object implements Serializable
Request to the/vci/single/parse
API.The Authlete API is supposed to be used to parse a credential request that the credential endpoint received.
Note that the implementation of the credential endpoint should call the
/auth/introspection
API to check whether the access token is valid BEFORE calling the/vci/single/parse
API. The validation on the access token by the/vci/single/parse
API is limited and not exhaustive. For example, the/vci/single/parse
API does not check certificate binding (RFC 8705).- Since:
- 3.66, Authlete 3.0
- See Also:
- OpenID for Verifiable Credential Issuance, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CredentialSingleParseRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
Get the access token that came along with the credential request.String
getRequestContent()
Get the message body of the credential request.CredentialSingleParseRequest
setAccessToken(String accessToken)
Set the access token that came along with the credential request.CredentialSingleParseRequest
setRequestContent(String requestContent)
Set the message body of the credential request.
-
-
-
Method Detail
-
getAccessToken
public String getAccessToken()
Get the access token that came along with the credential request.- Returns:
- The access token that the credential endpoint received.
-
setAccessToken
public CredentialSingleParseRequest setAccessToken(String accessToken)
Set the access token that came along with the credential request.- Parameters:
accessToken
- The access token that the credential endpoint received.- Returns:
this
object.
-
getRequestContent
public String getRequestContent()
Get the message body of the credential request. The expected format is JSON Object that contains at least the"format"
parameter.- Returns:
- The message body of the credential request.
-
setRequestContent
public CredentialSingleParseRequest setRequestContent(String requestContent)
Set the message body of the credential request. The expected format is JSON Object that contains at least the"format"
parameter.- Parameters:
requestContent
- The message body of the credential request.- Returns:
this
object.
-
-