Package com.google.crypto.tink.internal
Class RegistryConfiguration
- java.lang.Object
-
- com.google.crypto.tink.Configuration
-
- com.google.crypto.tink.internal.InternalConfiguration
-
- com.google.crypto.tink.internal.RegistryConfiguration
-
public final class RegistryConfiguration extends InternalConfiguration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InternalConfigurationcreateFromPrimitiveRegistry(PrimitiveRegistry registry)Do not call.static RegistryConfigurationget()<P> Pwrap(KeysetHandleInterface keysetHandle, MonitoringAnnotations annotations, java.lang.Class<P> clazz)Creates a primitive from a KeysetHandle.
-
-
-
Method Detail
-
get
public static RegistryConfiguration get()
-
wrap
public <P> P wrap(KeysetHandleInterface keysetHandle, MonitoringAnnotations annotations, java.lang.Class<P> clazz) throws java.security.GeneralSecurityException
Description copied from class:InternalConfigurationCreates a primitive from a KeysetHandle.- Specified by:
wrapin classInternalConfiguration- Throws:
java.security.GeneralSecurityException- if the wrapper for the provided pair (input class, wrapped class) is not registered
-
createFromPrimitiveRegistry
public static InternalConfiguration createFromPrimitiveRegistry(PrimitiveRegistry registry)
Do not call.We shadow the function
createFromPrimitiveRegistryhere so that one cannot invoke the static function in the superclass by writingRegistryConfiguration.createFromPrimitiveRegistry.
-
-