From 6e2baa3ec442d5d23615a780667c6d59c017d1be Mon Sep 17 00:00:00 2001 From: William Kim Date: Thu, 8 Aug 2013 09:13:54 -0400 Subject: [PATCH] updated comments for jwe service. --- .../service/JwtEncryptionAndDecryptionService.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openid-connect-common/src/main/java/org/mitre/jwt/encryption/service/JwtEncryptionAndDecryptionService.java b/openid-connect-common/src/main/java/org/mitre/jwt/encryption/service/JwtEncryptionAndDecryptionService.java index 4807bf4d8..07b4ab746 100644 --- a/openid-connect-common/src/main/java/org/mitre/jwt/encryption/service/JwtEncryptionAndDecryptionService.java +++ b/openid-connect-common/src/main/java/org/mitre/jwt/encryption/service/JwtEncryptionAndDecryptionService.java @@ -30,13 +30,17 @@ import com.nimbusds.jose.jwk.JWK; public interface JwtEncryptionAndDecryptionService { /** - * Encrypts the JWT in place with the default encrypter. + * Encrypts the JWT in place with the default encrypter. + * If an arbitrary payload is used, then pass in a JWEObject. + * Otherwise, if JWT claims are the payload, then use the JWEObject subclass EncryptedJWT instead. * @param jwt */ public void encryptJwt(JWEObject jwt); /** - * Decrypts the JWT in place with the default decrypter. + * Decrypts the JWT in place with the default decrypter. + * If an arbitrary payload is used, then pass in a JWEObject. + * Otherwise, if JWT claims are the payload, then use the JWEObject subclass EncryptedJWT instead. * @param jwt */ public void decryptJwt(JWEObject jwt);