Package com.authlete.common.dto
Class CredentialBatchParseRequest
- java.lang.Object
-
- com.authlete.common.dto.CredentialBatchParseRequest
-
- All Implemented Interfaces:
Serializable
public class CredentialBatchParseRequest extends Object implements Serializable
Request to the/vci/batch/parseAPI.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/introspectionAPI to check whether the access token is valid BEFORE calling the/vci/batch/parseAPI. The validation on the access token by the/vci/batch/parseAPI is limited and not exhaustive. For example, the/vci/batch/parseAPI does not check certificate binding (RFC 8705).- Since:
- 3.71, Authlete 3.0
- See Also:
- OpenID for Verifiable Credential Issuance, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CredentialBatchParseRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccessToken()Get the access token that came along with the batch credential request.StringgetRequestContent()Get the message body of the batch credential request.CredentialBatchParseRequestsetAccessToken(String accessToken)Set the access token that came along with the batch credential request.CredentialBatchParseRequestsetRequestContent(String requestContent)Set the message body of the batch credential request.
-
-
-
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:
thisobject.
-
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:
thisobject.
-
-