Interface Catalogue<P>


  • @Deprecated
    public interface Catalogue<P>
    Deprecated.
    Catalogues are no longer supported.
    A catalogue of KeyManager objects.

    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 P denotes the primitive corresponding to the KeyManager handled by this catalogue.

    Since:
    1.0.0
    • Method Detail

      • getKeyManager

        KeyManager<P> getKeyManager​(java.lang.String typeUrl,
                                    java.lang.String primitiveName,
                                    int minVersion)
                             throws java.security.GeneralSecurityException
        Deprecated.
        Returns:
        a KeyManager for the given typeUrl, primitiveName, and version at least minVersion (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