Package com.google.crypto.tink.internal
Class InternalConfiguration
- java.lang.Object
-
- com.google.crypto.tink.Configuration
-
- com.google.crypto.tink.internal.InternalConfiguration
-
- Direct Known Subclasses:
RegistryConfiguration
public abstract class InternalConfiguration extends Configuration
Abstract class representing the real configuration API, i.e. all algorithms that Tink understands. Internal. Users should not access these methods since the operations are to be used by internal KeysetHandle operations only.
-
-
Constructor Summary
Constructors Constructor Description InternalConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static InternalConfigurationcreateFromPrimitiveRegistry(PrimitiveRegistry registry)abstract <P> Pwrap(KeysetHandleInterface keysetHandle, MonitoringAnnotations annotations, java.lang.Class<P> clazz)Creates a primitive from a KeysetHandle.
-
-
-
Method Detail
-
wrap
public abstract <P> P wrap(KeysetHandleInterface keysetHandle, MonitoringAnnotations annotations, java.lang.Class<P> clazz) throws java.security.GeneralSecurityException
Creates a primitive from a KeysetHandle.- 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)
-
-