Package com.google.crypto.tink
Interface Catalogue<P>
-
@Deprecated public interface Catalogue<P>Deprecated.Catalogues are no longer supported.A catalogue ofKeyManagerobjects.It is basically a map from a (key type, primitive name)-tuple to
KeyManager-objects, that determines the implementation that handles the keys of the given key type.Tink includes default per-primitive catalogues, but it also supports custom catalogues to enable user-defined configuration of run-time environment via
Registry.The template parameter
Pdenotes the primitive corresponding to theKeyManagerhandled by this catalogue.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description KeyManager<P>getKeyManager(java.lang.String typeUrl, java.lang.String primitiveName, int minVersion)Deprecated.PrimitiveWrapper<?,P>getPrimitiveWrapper()Deprecated.Returns a new primitive wrapper for this primitive.
-
-
-
Method Detail
-
getKeyManager
KeyManager<P> getKeyManager(java.lang.String typeUrl, java.lang.String primitiveName, int minVersion) throws java.security.GeneralSecurityException
Deprecated.- Returns:
- a
KeyManagerfor the giventypeUrl,primitiveName, and version at leastminVersion(if it exists in the catalogue). - Throws:
java.security.GeneralSecurityException
-
getPrimitiveWrapper
PrimitiveWrapper<?,P> getPrimitiveWrapper() throws java.security.GeneralSecurityException
Deprecated.Returns a new primitive wrapper for this primitive.- Throws:
java.security.GeneralSecurityException
-
-