Skip to main content

@atala/prism-wallet-sdk / Exports / Domain / Credential

Class: Credential

Domain.Credential

Storable define properties a Domain object must implement to be compatible with Pluto

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Credential(): Credential

Returns

Credential

Properties

claims

Abstract claims: Claim[]

Defined in

src/domain/models/Credential.ts:14


credentialType

Abstract credentialType: CredentialType

Defined in

src/domain/models/Credential.ts:9


id

Abstract id: string

Defined in

src/domain/models/Credential.ts:11


issuer

Abstract issuer: string

Defined in

src/domain/models/Credential.ts:12


properties

Abstract properties: Map<string, any>

Defined in

src/domain/models/Credential.ts:15


recoveryId

Abstract recoveryId: string

Defined in

src/domain/models/Credential.ts:10


subject

Abstract subject: string

Defined in

src/domain/models/Credential.ts:13


uuid

Readonly uuid: string

Universally Unique Identifier. should be unique across all items.

Implementation of

Storable.uuid

Defined in

src/domain/models/Credential.ts:17

Methods

getProperty

getProperty(name): any

Parameters

NameType
namestring

Returns

any

Defined in

src/domain/models/Credential.ts:19


isProvable

isProvable(): this is ProvableCredential

Returns

this is ProvableCredential

Defined in

src/domain/models/Credential.ts:23


isRevoked

isRevoked(): boolean

Returns

boolean

Defined in

src/domain/models/Credential.ts:31


isStorable

isStorable(): this is StorableCredential

Returns

this is StorableCredential

Defined in

src/domain/models/Credential.ts:27