open class CredentialRecord : BaseRecord
Credential record
Represents a credential record in the agency wallet. The current class has three sub-classes.
The each sub-class relates to kind of CredentialState and can be convert to the next state by
means method like toRequestedCredential
and etc.
ReceivedIssue |
This class presents the final state of credential. It means that the credential was issued by the Issuer and stored into the local wallet. The new instance can be created by means the SentRequest.toReceivedIssue method. data class ReceivedIssue : CredentialRecord |
ReceivedOffer |
This class relates to the CredentialState.RECEIVED_OFFER credential record. The current record is first in the credential record lifecycle. data class ReceivedOffer : CredentialRecord |
RejectedCredential |
This class relates to the CredentialState.REJECTED credential record. The current state of the credential record can be set only from SentRequest. data class RejectedCredential : CredentialRecord |
SentRequest |
This class relates to the CredentialState.SENT_REQUEST credential record. The current state of the credential record is intermediate between offered and issued. The new instance can be crated from ReceivedOffer instance by means ReceivedOffer.toRequestedCredential. data class SentRequest : CredentialRecord |
<init> |
Credential record CredentialRecord(id: String, connectionContext: ConnectionContext, state: String) |
connectionContext |
context about the connection for this instance of the protocol open val connectionContext: ConnectionContext |
id |
the unique identifier open val id: String |
state |
the current credential record state val state: String |
threadId |
var threadId: String? |
typeName |
the name of record type open val typeName: String |
PROPERTY_STATE |
const val PROPERTY_STATE: String |
TAG_CREDENTIAL_DEFINITION_ID |
const val TAG_CREDENTIAL_DEFINITION_ID: String |
TAG_CREDENTIAL_ID |
This tag is only present in the holder wallet. The value must be encrypted const val TAG_CREDENTIAL_ID: String |
TAG_SCHEMA_ID |
const val TAG_SCHEMA_ID: String |