VerifyEncryptedJWT

Description

Verify an encrypted JWT.

Syntax

verifyEncryptedJWT(token, EncryptOptions, config)

Parameters

Parameter Description Required
token

Encrypted token created by ColdFusion.

Yes
encryptOptions

Create the signature using the struct below:

  • Key
  • KeyPair - private Key will be used.
  • Keystore file, keystore password, keystore alias
Yes
config

A struct with the following values:

  • clockSkew - time in seconds to account for difference between the systems generating and processing the JWT
  • returntype - plaintext/struct
Yes

Returns

A struct containing all the JWT claims.

Example

<cfset encr = {
    "keystore" = “test_encryption1.keystore",
    "keystoreAlias" = "contentKey",
    "keystorePassword" = "****",
    "keypairPassword" = "****"
}>
<cfset c = {
    "algorithm" = "RSA-OAEP",
    "encryption" = "A128CBC-HS256"
}>
<cfset config = {
    "returnType" = "struct"
}>
<cfset verifyjwe = VerifyEncryptedJWT(#URL.jwe#, encr, config)>
<cfdump var="#verifyjwe#">

 Adobe

Получайте помощь быстрее и проще

Новый пользователь?

Adobe MAX 2024

Adobe MAX
— творческая конференция

С 14 по 16 октября очно в Майами-Бич и онлайн

Adobe MAX

Творческая конференция

С 14 по 16 октября очно в Майами-Бич и онлайн

Adobe MAX 2024

Adobe MAX
— творческая конференция

С 14 по 16 октября очно в Майами-Бич и онлайн

Adobe MAX

Творческая конференция

С 14 по 16 октября очно в Майами-Бич и онлайн