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/parseAPI.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/introspectionAPI to check whether the access token is valid BEFORE calling the/vci/single/parseAPI. The validation on the access token by the/vci/single/parseAPI is limited and not exhaustive. For example, the/vci/single/parseAPI 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 StringgetAccessToken()Get the access token that came along with the credential request.StringgetRequestContent()Get the message body of the credential request.CredentialSingleParseRequestsetAccessToken(String accessToken)Set the access token that came along with the credential request.CredentialSingleParseRequestsetRequestContent(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:
thisobject.
-
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:
thisobject.
-
-