Package org.jose4j.jwe
Class SimpleAeadCipher
java.lang.Object
org.jose4j.jwe.SimpleAeadCipher
1
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
getInitialisedCipher
(Key key, byte[] iv, int mode, String provider) boolean
isAvailable
(org.slf4j.Logger log, int keyByteLength, int ivByteLength, String joseAlg)
-
Field Details
-
GCM_TRANSFORMATION_NAME
- See Also:
-
-
Constructor Details
-
SimpleAeadCipher
-
-
Method Details
-
getInitialisedCipher
public Cipher getInitialisedCipher(Key key, byte[] iv, int mode, String provider) throws JoseException - Throws:
JoseException
-
encrypt
public SimpleAeadCipher.CipherOutput encrypt(Key key, byte[] iv, byte[] plaintext, byte[] aad, String provider) throws JoseException - Throws:
JoseException
-
decrypt
public byte[] decrypt(Key key, byte[] iv, byte[] ciphertext, byte[] tag, byte[] aad, String provider) throws JoseException - Throws:
JoseException
-
decrypt
public byte[] decrypt(byte[] ciphertext, byte[] tag, byte[] aad, Cipher cipher) throws JoseException - Throws:
JoseException
-
isAvailable
public boolean isAvailable(org.slf4j.Logger log, int keyByteLength, int ivByteLength, String joseAlg)
-