Package io.jans.as.model.jwe
Class JweEncrypterImpl
java.lang.Object
io.jans.as.model.jwe.AbstractJweEncrypter
io.jans.as.model.jwe.JweEncrypterImpl
- All Implemented Interfaces:
JweEncrypter
- Version:
- November 20, 2018
- Author:
- Javier Rojas Blum
-
Constructor Summary
ConstructorsConstructorDescriptionJweEncrypterImpl
(KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, byte[] sharedSymmetricKey) JweEncrypterImpl
(KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, PublicKey publicKey) -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.jose.JWEEncrypter
static com.nimbusds.jose.Payload
createPayload
(Jwe jwe) Methods inherited from class io.jans.as.model.jwe.AbstractJweEncrypter
getBlockEncryptionAlgorithm, getKeyEncryptionAlgorithm
-
Constructor Details
-
JweEncrypterImpl
public JweEncrypterImpl(KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, byte[] sharedSymmetricKey) -
JweEncrypterImpl
public JweEncrypterImpl(KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, PublicKey publicKey)
-
-
Method Details
-
createJweEncrypter
public com.nimbusds.jose.JWEEncrypter createJweEncrypter() throws com.nimbusds.jose.JOSEException, InvalidJweException, NoSuchAlgorithmException- Throws:
com.nimbusds.jose.JOSEException
InvalidJweException
NoSuchAlgorithmException
-
createPayload
public static com.nimbusds.jose.Payload createPayload(Jwe jwe) throws ParseException, InvalidJwtException - Throws:
ParseException
InvalidJwtException
-
encrypt
- Throws:
InvalidJweException
-