SDJWT
@hyperledger/identus-sdk v7.0.0
@hyperledger/identus-sdk / overview / SDJWT
Class: SDJWT
Defined in: src/pollux/utils/jwt/SDJWT.ts:28
used to enable Modules to propagate the Context and have access to runTask
Extends
Constructors
Constructor
new SDJWT():
SDJWT
Returns
SDJWT
Inherited from
Methods
clone()
clone():
SDJWT
Defined in: src/pollux/utils/jwt/SDJWT.ts:29
Returns
SDJWT
Overrides
createPresentationFor()
createPresentationFor<
T>(options: {jws:string;presentationFrame?:PFrame<T>;privateKey:PrivateKey; }):Promise<string>
Defined in: src/pollux/utils/jwt/SDJWT.ts:97
Type Parameters
| Type Parameter | 
|---|
| TextendsSdJwtVcPayload | 
Parameters
| Parameter | Type | 
|---|---|
| options | { jws:string;presentationFrame?:PFrame<T>;privateKey:PrivateKey; } | 
| options.jws | string | 
| options.presentationFrame? | PFrame<T> | 
| options.privateKey | PrivateKey | 
Returns
Promise<string>
decode()
decode(
jws:string):DecodedSDJwt
Defined in: src/pollux/utils/jwt/SDJWT.ts:33
Parameters
| Parameter | Type | 
|---|---|
| jws | string | 
Returns
DecodedSDJwt
getPKConfig()
getPKConfig(
publicKey:PublicKey):SDJWTVCConfig
Defined in: src/pollux/utils/jwt/SDJWT.ts:117
Parameters
| Parameter | Type | 
|---|---|
| publicKey | PublicKey | 
Returns
SDJWTVCConfig
getSKConfig()
getSKConfig(
privateKey:PrivateKey):SDJWTVCConfig
Defined in: src/pollux/utils/jwt/SDJWT.ts:151
Parameters
| Parameter | Type | 
|---|---|
| privateKey | PrivateKey | 
Returns
SDJWTVCConfig
reveal()
reveal(
disclosedPayload:Record<string,unknown>,disclosures:Disclosure<unknown>[]):Promise<unknown>
Defined in: src/pollux/utils/jwt/SDJWT.ts:106
Parameters
| Parameter | Type | 
|---|---|
| disclosedPayload | Record<string,unknown> | 
| disclosures | Disclosure<unknown>[] | 
Returns
Promise<unknown>
sign()
sign<
E>(options: {disclosureFrame:DisclosureFrame<E>;issuerDID:DID;kid?:string;payload:E;privateKey?:PrivateKey; }):Promise<string>
Defined in: src/pollux/utils/jwt/SDJWT.ts:37
Type Parameters
| Type Parameter | 
|---|
| EextendsSdJwtVcPayload | 
Parameters
| Parameter | Type | 
|---|---|
| options | { disclosureFrame:DisclosureFrame<E>;issuerDID:DID;kid?:string;payload:E;privateKey?:PrivateKey; } | 
| options.disclosureFrame | DisclosureFrame<E> | 
| options.issuerDID | DID | 
| options.kid? | string | 
| options.payload | E | 
| options.privateKey? | PrivateKey | 
Returns
Promise<string>
verify()
verify(
options: {issuerDID:DID;jws:string;requiredClaimKeys?:string[];requiredKeyBindings?:boolean; }):Promise<boolean>
Defined in: src/pollux/utils/jwt/SDJWT.ts:53
Parameters
| Parameter | Type | 
|---|---|
| options | { issuerDID:DID;jws:string;requiredClaimKeys?:string[];requiredKeyBindings?:boolean; } | 
| options.issuerDID | DID | 
| options.jws | string | 
| options.requiredClaimKeys? | string[] | 
| options.requiredKeyBindings? | boolean | 
Returns
Promise<boolean>
withContext()
Defined in: src/utils/tasks.ts:103
Parameters
| Parameter | Type | 
|---|---|
| ctx | Context |