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
public class JweEncrypterImpl extends AbstractJweEncrypter
- Version:
- November 20, 2018
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description JweEncrypterImpl(KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, byte[] sharedSymmetricKey)
JweEncrypterImpl(KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, PublicKey publicKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nimbusds.jose.JWEEncrypter
createJweEncrypter()
static com.nimbusds.jose.Payload
createPayload(Jwe jwe)
Jwe
encrypt(Jwe jwe)
-
Methods inherited from class io.jans.as.model.jwe.AbstractJweEncrypter
getBlockEncryptionAlgorithm, getKeyEncryptionAlgorithm
-
-
-
-
Constructor Detail
-
JweEncrypterImpl
public JweEncrypterImpl(KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, byte[] sharedSymmetricKey)
-
JweEncrypterImpl
public JweEncrypterImpl(KeyEncryptionAlgorithm keyEncryptionAlgorithm, BlockEncryptionAlgorithm blockEncryptionAlgorithm, PublicKey publicKey)
-
-
Method Detail
-
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
public Jwe encrypt(Jwe jwe) throws InvalidJweException
- Throws:
InvalidJweException
-
-