Class CleartextKeysetHandle

    • Method Detail

      • parseFrom

        @Deprecated
        public static final KeysetHandle parseFrom​(byte[] serialized)
                                            throws java.security.GeneralSecurityException
        Deprecated.
        Call TinkProtoKeysetFormat.parseKeyset(serialized, InsecureSecretKeyAccess.get()) which has the same semantics.
        Returns:
        a new KeysetHandle from serialized that is a serialized Keyset
        Throws:
        java.security.GeneralSecurityException
      • read

        public static KeysetHandle read​(KeysetReader reader)
                                 throws java.security.GeneralSecurityException,
                                        java.io.IOException
        Returns:
        a new KeysetHandle from a Keyset read with reader.
        Throws:
        java.security.GeneralSecurityException - when the keyset is invalid or can't be read.
        java.io.IOException
      • read

        @Deprecated
        public static KeysetHandle read​(KeysetReader reader,
                                        java.util.Map<java.lang.String,​java.lang.String> monitoringAnnotations)
                                 throws java.security.GeneralSecurityException,
                                        java.io.IOException
        Deprecated.
        Instead, use a KeysetHandle.Builder.
        Creates a KeysetHandle from a KeysetReader.

        The additional monitoringAnnotations are used for monitoring, and will be passed to the MonitoringClient.

        Throws:
        java.security.GeneralSecurityException - when the keyset is invalid or cannot be read.
        java.io.IOException
      • getKeyset

        @Deprecated
        public static com.google.crypto.tink.proto.Keyset getKeyset​(KeysetHandle keysetHandle)
        Deprecated.
        Instead, call "KeysetHandle.getAt()" to get information about individual keys or TinkProtoKeysetFormat if you need a serialized keyset.
        Returns:
        the keyset underlying this keysetHandle.
      • fromKeyset

        @Deprecated
        public static KeysetHandle fromKeyset​(com.google.crypto.tink.proto.Keyset keyset)
                                       throws java.security.GeneralSecurityException
        Deprecated.
        Instead, use a KeysetHandle.Builder.
        Returns a KeysetHandle for keyset.
        Throws:
        java.security.GeneralSecurityException
      • write

        public static void write​(KeysetHandle handle,
                                 KeysetWriter keysetWriter)
                          throws java.io.IOException
        Serializes and writes the Keyset managed by handle to keysetWriter.
        Throws:
        java.io.IOException