@Override public String decode(final Serializable value, final Object[] parameters) { val currentValue = value.toString().getBytes(StandardCharsets.UTF_8); val encoded = this.signingEnabled ? verifySignature(currentValue) : currentValue; if (encoded != null && encoded.length > 0) { val encodedObj = new String(encoded, StandardCharsets.UTF_8); if (this.encryptionEnabled && this.secretKeyEncryptionKey != null) { return EncodingUtils.decryptJwtValue(this.secretKeyEncryptionKey, encodedObj); } return encodedObj; } return null; }