â ī¸Interface: ZkPassUtility
â ī¸ Deprecated API Notice
This API is deprecated and will be removed in a future release.
Implemented by
Table of contents
Methods
Methods
decryptJweToken
⸠decryptJweToken(key
, jweToken
): Promise
<string
>
Decrypts a JWT token
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Promise
<string
>
encryptDataToJweToken
⸠encryptDataToJweToken(key
, data
): Promise
<string
>
Encrypts data into a JWE token
Parameters
Name | Type |
---|---|
|
|
|
Returns
Promise
<string
>
signDataToJwsToken
⸠signDataToJwsToken(signingKey
, data
, verifyingKeyJwks?
): Promise
<string
>
Signs data into a JWS token
Parameters
Name | Type |
---|---|
|
|
| |
|
Returns
Promise
<string
>
verifyJwsToken
⸠verifyJwsToken(key
, jwsToken
): Promise
<string
>
Verifies the signature of a JWS token
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Promise
<string
>
getEncryptionKey
⸠getEncryptionKey(): Promise
<string
>
Asynchronously retrieves the service encryption public key from the getKeys
function
Returns
Promise
<string
>
getVerifyingKey
⸠getVerifyingKey(): Promise
<string
>
Asynchronously retrieves the service verifying public key from the getKeys
function
Returns
Promise
<string
>
Last updated