Class TinkProtoKeysetFormat


  • public final class TinkProtoKeysetFormat
    extends java.lang.Object
    Functions to parse and serialize Keyset in Tink's binary format based on Protobufs.
    • Method Detail

      • parseKeyset

        @InlineMe(replacement="TinkProtoKeysetFormat.parseKeyset(serializedKeyset, access, RegistryConfiguration.get())",
                  imports={"com.google.crypto.tink.RegistryConfiguration","com.google.crypto.tink.TinkProtoKeysetFormat"})
        @Deprecated
        public static KeysetHandle parseKeyset​(byte[] serializedKeyset,
                                               SecretKeyAccess access)
                                        throws java.security.GeneralSecurityException
        Deprecated.
        This function should be inlined.
        Parses a keyset in Tink's binary format based on Protobufs, using the RegistryConfiguration.
        Throws:
        java.security.GeneralSecurityException
      • parseKeyset

        public static KeysetHandle parseKeyset​(byte[] serializedKeyset,
                                               SecretKeyAccess access,
                                               Configuration configuration)
                                        throws java.security.GeneralSecurityException
        Parses a keyset in Tink's binary format based on Protobufs, using the provided Configuration.
        Throws:
        java.security.GeneralSecurityException
      • serializeKeyset

        @InlineMe(replacement="TinkProtoKeysetFormat.serializeKeyset(keysetHandle, access, RegistryConfiguration.get())",
                  imports={"com.google.crypto.tink.RegistryConfiguration","com.google.crypto.tink.TinkProtoKeysetFormat"})
        @Deprecated
        public static byte[] serializeKeyset​(KeysetHandle keysetHandle,
                                             SecretKeyAccess access)
                                      throws java.security.GeneralSecurityException
        Deprecated.
        This function should be inlined.
        Serializes a keyset in Tink's binary format based on Protobufs, using the RegistryConfiguration.
        Throws:
        java.security.GeneralSecurityException
      • serializeKeyset

        public static byte[] serializeKeyset​(KeysetHandle keysetHandle,
                                             SecretKeyAccess access,
                                             Configuration configuration)
                                      throws java.security.GeneralSecurityException
        Serializes a keyset in Tink's binary format based on Protobufs, using the provided Configuration.
        Throws:
        java.security.GeneralSecurityException
      • parseKeysetWithoutSecret

        public static KeysetHandle parseKeysetWithoutSecret​(byte[] serializedKeyset)
                                                     throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • serializeKeysetWithoutSecret

        public static byte[] serializeKeysetWithoutSecret​(KeysetHandle keysetHandle)
                                                   throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • parseEncryptedKeyset

        @InlineMe(replacement="TinkProtoKeysetFormat.parseEncryptedKeyset(serializedEncryptedKeyset, keysetEncryptionAead, associatedData, RegistryConfiguration.get())",
                  imports={"com.google.crypto.tink.RegistryConfiguration","com.google.crypto.tink.TinkProtoKeysetFormat"})
        @Deprecated
        public static KeysetHandle parseEncryptedKeyset​(byte[] serializedEncryptedKeyset,
                                                        Aead keysetEncryptionAead,
                                                        byte[] associatedData)
                                                 throws java.security.GeneralSecurityException
        Deprecated.
        This function should be inlined.
        Parses an encrypted keyset in Tink's binary format based on Protobufs, using the RegistryConfiguration.
        Throws:
        java.security.GeneralSecurityException
      • parseEncryptedKeyset

        public static KeysetHandle parseEncryptedKeyset​(byte[] serializedEncryptedKeyset,
                                                        Aead keysetEncryptionAead,
                                                        byte[] associatedData,
                                                        Configuration configuration)
                                                 throws java.security.GeneralSecurityException
        Parses an encrypted keyset in Tink's binary format based on Protobufs, using the provided Configuration.
        Throws:
        java.security.GeneralSecurityException
      • serializeEncryptedKeyset

        @InlineMe(replacement="TinkProtoKeysetFormat.serializeEncryptedKeyset(keysetHandle, keysetEncryptionAead, associatedData, RegistryConfiguration.get())",
                  imports={"com.google.crypto.tink.RegistryConfiguration","com.google.crypto.tink.TinkProtoKeysetFormat"})
        @Deprecated
        public static byte[] serializeEncryptedKeyset​(KeysetHandle keysetHandle,
                                                      Aead keysetEncryptionAead,
                                                      byte[] associatedData)
                                               throws java.security.GeneralSecurityException
        Deprecated.
        This function should be inlined.
        Serializes an encrypted keyset in Tink's binary format based on Protobufs, using the RegistryConfiguration.
        Throws:
        java.security.GeneralSecurityException
      • serializeEncryptedKeyset

        public static byte[] serializeEncryptedKeyset​(KeysetHandle keysetHandle,
                                                      Aead keysetEncryptionAead,
                                                      byte[] associatedData,
                                                      Configuration configuration)
                                               throws java.security.GeneralSecurityException
        Serializes an encrypted keyset in Tink's binary format based on Protobufs, using the provided Configuration.
        Throws:
        java.security.GeneralSecurityException