@ SneakyThrows public static String decryptJwtValue ( final Key secretKeyEncryptionKey , final String value ) { val jwe = new JsonWebEncryption ( ) ; jwe . setKey ( secretKeyEncryptionKey ) ; jwe . setCompactSerialization ( value ) ; LOGGER . trace ( "Decrypting value..." ) ; try { return jwe . getPayload ( ) ; } catch ( final JoseException e ) { if ( LOGGER . isTraceEnabled ( ) ) { throw new DecryptionException ( e ) ; } throw new DecryptionException ( ) ; } }
Decrypt value based on the key created .