@atala/prism-wallet-sdk / Exports / JWTCredential
Class: JWTCredential
Storable define properties a Domain object must implement to be compatible with Pluto
Hierarchy
-
↳
JWTCredential
Implements
Table of contents
Constructors
Properties
Accessors
- audience
- claims
- context
- credentialSchema
- credentialStatus
- credentialSubject
- evidence
- expirationDate
- id
- isCredential
- issuanceDate
- issuer
- refreshService
- revoked
- subject
- termsOfUse
- type
- vc
- vp
Methods
- getProperty
- isCredentialPayload
- isProvable
- isRevoked
- isStorable
- presentation
- toStorable
- verifiableCredential
- fromJWS
Constructors
constructor
• new JWTCredential(payload
, revoked?
): JWTCredential
Parameters
Name | Type |
---|---|
payload | string |
revoked? | boolean |
Returns
Overrides
Defined in
src/pollux/models/JWTVerifiableCredential.ts:34
• new JWTCredential(payload
, revoked?
): JWTCredential
Parameters
Name | Type |
---|---|
payload | JWTCredentialPayload | JWTPresentationPayload |
revoked? | boolean |
Returns
Overrides
Credential.constructor
Defined in
src/pollux/models/JWTVerifiableCredential.ts:35
Properties
credentialType
• credentialType: CredentialType
= CredentialType.JWT
Overrides
Defined in
src/pollux/models/JWTVerifiableCredential.ts:30
properties
• properties: Map
<JWTVerifiableCredentialProperties
| JWTVerifiablePresentationProperties
, any
>
Overrides
Defined in
src/pollux/models/JWTVerifiableCredential.ts:32
recoveryId
• recoveryId: string
= JWTVerifiableCredentialRecoveryId
Overrides
Defined in
src/pollux/models/JWTVerifiableCredential.ts:31
uuid
• Readonly
uuid: string
Universally Unique Identifier. should be unique across all items.
Implementation of
Inherited from
Defined in
src/domain/models/Credential.ts:17
Accessors
audience
• get
audience(): any
Returns
any
Defined in
src/pollux/models/JWTVerifiableCredential.ts:335
claims
• get
claims(): Record
<string
, any
>[]
Returns
Record
<string
, any
>[]
Overrides
Credential.claims
Defined in
src/pollux/models/JWTVerifiableCredential.ts:292
context
• get
context(): undefined
| [credential
]
Returns
undefined
| [credential
]
Defined in
src/pollux/models/JWTVerifiableCredential.ts:301
credentialSchema
• get
credentialSchema(): undefined
| { id
: string
; type
: string
}
Returns
undefined
| { id
: string
; type
: string
}
Defined in
src/pollux/models/JWTVerifiableCredential.ts:305
credentialStatus
• get
credentialStatus(): unknown
Returns
unknown
Defined in
src/pollux/models/JWTVerifiableCredential.ts:309
credentialSubject
• get
credentialSubject(): undefined
| Record
<string
, any
>
Returns
undefined
| Record
<string
, any
>
Defined in
src/pollux/models/JWTVerifiableCredential.ts:313
evidence
• get
evidence(): undefined
| { id
: string
; type
: string
}
Returns
undefined
| { id
: string
; type
: string
}
Defined in
src/pollux/models/JWTVerifiableCredential.ts:317
expirationDate
• get
expirationDate(): undefined
| string
Returns
undefined
| string
Defined in
src/pollux/models/JWTVerifiableCredential.ts:321
id
• get
id(): any
Returns
any
Overrides
Credential.id
Defined in
src/pollux/models/JWTVerifiableCredential.ts:268
isCredential
• get
isCredential(): boolean
Returns
boolean
Defined in
src/pollux/models/JWTVerifiableCredential.ts:264
issuanceDate
• get
issuanceDate(): string
Returns
string
Defined in
src/pollux/models/JWTVerifiableCredential.ts:328
issuer
• get
issuer(): any
Returns
any
Overrides
Credential.issuer
Defined in
src/pollux/models/JWTVerifiableCredential.ts:342
refreshService
• get
refreshService(): undefined
| { id
: string
; type
: string
}
Returns
undefined
| { id
: string
; type
: string
}
Defined in
src/pollux/models/JWTVerifiableCredential.ts:349
revoked
• get
revoked(): undefined
| boolean
Returns
undefined
| boolean
Defined in
src/pollux/models/JWTVerifiableCredential.ts:361
subject
• get
subject(): string
Returns
string
Overrides
Credential.subject
Defined in
src/pollux/models/JWTVerifiableCredential.ts:353
termsOfUse
• get
termsOfUse(): undefined
| { id
: string
; type
: string
}
Returns
undefined
| { id
: string
; type
: string
}
Defined in
src/pollux/models/JWTVerifiableCredential.ts:369
type
• get
type(): undefined
| [credential
] | [presentation
]
Returns
undefined
| [credential
] | [presentation
]
Defined in
src/pollux/models/JWTVerifiableCredential.ts:373
vc
• get
vc(): undefined
| W3CVerifiableCredential
Returns
undefined
| W3CVerifiableCredential
Defined in
src/pollux/models/JWTVerifiableCredential.ts:276
vp
• get
vp(): undefined
| W3CVerifiablePresentation
Returns
undefined
| W3CVerifiablePresentation
Defined in
src/pollux/models/JWTVerifiableCredential.ts:284
Methods
getProperty
▸ getProperty(name
): any
Parameters
Name | Type |
---|---|
name | string |
Returns
any
Inherited from
Defined in
src/domain/models/Credential.ts:19
isCredentialPayload
▸ isCredentialPayload(payload
): payload is JWTCredentialPayload
Parameters
Name | Type |
---|---|
payload | any |
Returns
payload is JWTCredentialPayload
Defined in
src/pollux/models/JWTVerifiableCredential.ts:182
isProvable
▸ isProvable(): this is ProvableCredential
Returns
this is ProvableCredential
Inherited from
Defined in
src/domain/models/Credential.ts:23
isRevoked
▸ isRevoked(): boolean
Returns
boolean
Inherited from
Defined in
src/domain/models/Credential.ts:31
isStorable
▸ isStorable(): this is StorableCredential
Returns
this is StorableCredential
Inherited from
Defined in
src/domain/models/Credential.ts:27
presentation
▸ presentation(): W3CVerifiablePresentation
Returns
Implementation of
ProvableCredential.presentation
Defined in
src/pollux/models/JWTVerifiableCredential.ts:377
toStorable
▸ toStorable(): Object
Returns
Object
Name | Type |
---|---|
availableClaims | string [] |
credentialData | string |
id | any |
issuer | any |
recoveryId | string |
revoked | undefined | boolean |
subject | any |
validUntil | any |
Implementation of
Defined in
src/pollux/models/JWTVerifiableCredential.ts:412
verifiableCredential
▸ verifiableCredential(): W3CVerifiableCredential
Returns
Implementation of
ProvableCredential.verifiableCredential
Defined in
src/pollux/models/JWTVerifiableCredential.ts:394
fromJWS
▸ fromJWS(jws
, revoked?
): JWTCredential
Parameters
Name | Type |
---|---|
jws | string |
revoked? | boolean |