Credential
@hyperledger/identus-sdk v7.0.0
@hyperledger/identus-sdk / overview / Domain / Credential
Abstract Class: Credential
Defined in: src/domain/models/Credential.ts:6
Storable define properties a Domain object must implement to be compatible with Pluto
Extended by
Implements
Constructors
Constructor
new Credential():
Credential
Returns
Credential
Properties
| Property | Modifier | Type | Description | Defined in | 
|---|---|---|---|---|
| claims | abstract | Claim[] | - | src/domain/models/Credential.ts:12 | 
| credentialType | abstract | CredentialType | - | src/domain/models/Credential.ts:7 | 
| id | abstract | string | - | src/domain/models/Credential.ts:9 | 
| issuer | abstract | string | - | src/domain/models/Credential.ts:10 | 
| properties | abstract | Map<string,any> | - | src/domain/models/Credential.ts:13 | 
| recoveryId | abstract | string | - | src/domain/models/Credential.ts:8 | 
| subject | abstract | string | - | src/domain/models/Credential.ts:11 | 
| uuid | readonly | string | Universally Unique Identifier. should be unique across all items. | src/domain/models/Credential.ts:15 | 
Methods
getProperty()
getProperty(
name:string):any
Defined in: src/domain/models/Credential.ts:17
Parameters
| Parameter | Type | 
|---|---|
| name | string | 
Returns
any
isProvable()
isProvable():
this is ProvableCredential
Defined in: src/domain/models/Credential.ts:21
Returns
this is ProvableCredential
isRevoked()
isRevoked():
boolean
Defined in: src/domain/models/Credential.ts:29
Returns
boolean
isStorable()
isStorable():
this is StorableCredential
Defined in: src/domain/models/Credential.ts:25
Returns
this is StorableCredential