⚠️ Deprecated API Notice
This API is deprecated and will be removed in a future release.
▸ decryptJweToken(key
, jweToken
): Promise
<string
>
Decrypts a JWT token
Parameters
Returns
Promise
<string
>
▸ encryptDataToJweToken(key
, data
): Promise
<string
>
Encrypts data into a JWE token
Parameters
Returns
Promise
<string
>
▸ signDataToJwsToken(signingKey
, data
, verifyingKeyJwks?
): Promise
<string
>
Signs data into a JWS token
Parameters
Returns
Promise
<string
>
▸ verifyJwsToken(key
, jwsToken
): Promise
<string
>
Verifies the signature of a JWS token
Parameters
Returns
Promise
<string
>
▸ getEncryptionKey(): Promise
<string
>
Asynchronously retrieves the service encryption public key from the getKeys
function
Returns
Promise
<string
>
▸ getVerifyingKey(): Promise
<string
>
Asynchronously retrieves the service verifying public key from the getKeys
function
Returns
Promise
<string
>
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
key
string
jweToken
string
key
string
data
signingKey
string
data
verifyingKeyJwks?
key
string
jwsToken
string