build
Builds an instance of IssueCredential with the provided parameters.
Return
An instance of IssueCredential with the specified parameters.
Parameters
The type of the credentials.
The DID of the sender.
The DID of the recipient.
The thread ID (optional).
The map of credential formats and their corresponding values (default is an empty map).
Builds an OfferCredential object with the provided data.
Return
The constructed OfferCredential object.
Parameters
The DID of the sender.
The DID of the recipient.
The thread ID.
The preview of the credential.
The map of credentials. Default value is an empty map.
This method builds a ProposeCredential object based on the provided parameters. The ProposeCredential represents a proposal to issue a credential in the Atala PRISM architecture . The method takes in the following parameters:
Return
A new ProposeCredential object.
Parameters
The DID of the sender of the proposal.
The DID of the recipient of the proposal.
The thread ID of the proposal. Optional.
The credential preview object that describes the proposed credential.
A map of credential formats and their corresponding values. The values must be of type T, which must implement the Serializable interface. The default value is an empty map.
Builds a RequestCredential object using the provided parameters.
Return
The created RequestCredential object.
Parameters
The DID of the sender.
The DID of the receiver.
The THID (thread ID).
The map of credential formats and corresponding payloads.