Interface AeadFactory
-
- All Known Implementing Classes:
AesGcmFactory
@Immutable public interface AeadFactoryProvides AEAD instances with a specific raw key.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AeadcreateAead(byte[] symmetricKey)Creates a newAead-primitive that uses the key material given insymmetricKey, which must be of lengthgetKeySizeInBytes().intgetKeySizeInBytes()Returns the size of the AEAD key in bytes.
-
-
-
Method Detail
-
getKeySizeInBytes
int getKeySizeInBytes()
Returns the size of the AEAD key in bytes.
-
createAead
Aead createAead(byte[] symmetricKey) throws java.security.GeneralSecurityException
Creates a newAead-primitive that uses the key material given insymmetricKey, which must be of lengthgetKeySizeInBytes().- Returns:
- the newly created
Aead-primitive. - Throws:
java.security.GeneralSecurityException
-
-