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