Package com.google.crypto.tink.aead
Class AeadFactory
- java.lang.Object
-
- com.google.crypto.tink.aead.AeadFactory
-
@Deprecated public final class AeadFactory extends java.lang.ObjectDeprecated.UsekeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class)after registering theAeadWrapperinstead.Deprecated class to createAeadprimitives. Instead of using this class, make sure that theAeadWrapperis registered in your binary, then callkeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class)instead. The required registration happens automatically if you called one of the following in your binary:HybridConfig.register()AeadConfig.register()TinkConfig.register()
- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AeadgetPrimitive(KeysetHandle keysetHandle)Deprecated.UsekeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class)after registering theAeadWrapperinstead.
-
-
-
Method Detail
-
getPrimitive
@Deprecated public static Aead getPrimitive(KeysetHandle keysetHandle) throws java.security.GeneralSecurityException
Deprecated.UsekeysetHandle.getPrimitive(RegistryConfiguration.get(), Aead.class)after registering theAeadWrapperinstead.- Returns:
- a Aead primitive from a
keysetHandle. - Throws:
java.security.GeneralSecurityException
-
-