|
|
@ -30,13 +30,17 @@ import com.nimbusds.jose.jwk.JWK;
|
|
|
|
public interface JwtEncryptionAndDecryptionService {
|
|
|
|
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
|
|
|
|
* @param jwt
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public void encryptJwt(JWEObject 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
|
|
|
|
* @param jwt
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public void decryptJwt(JWEObject jwt);
|
|
|
|
public void decryptJwt(JWEObject jwt);
|
|
|
|