Package com.google.crypto.tink
Class TinkProtoKeysetFormat
- java.lang.Object
-
- com.google.crypto.tink.TinkProtoKeysetFormat
-
public final class TinkProtoKeysetFormat extends java.lang.ObjectFunctions to parse and serialize Keyset in Tink's binary format based on Protobufs.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static KeysetHandleparseEncryptedKeyset(byte[] serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData)Deprecated.This function should be inlined.static KeysetHandleparseEncryptedKeyset(byte[] serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData, Configuration configuration)Parses an encrypted keyset in Tink's binary format based on Protobufs, using the providedConfiguration.static KeysetHandleparseKeyset(byte[] serializedKeyset, SecretKeyAccess access)Deprecated.This function should be inlined.static KeysetHandleparseKeyset(byte[] serializedKeyset, SecretKeyAccess access, Configuration configuration)Parses a keyset in Tink's binary format based on Protobufs, using the providedConfiguration.static KeysetHandleparseKeysetWithoutSecret(byte[] serializedKeyset)static byte[]serializeEncryptedKeyset(KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData)Deprecated.This function should be inlined.static byte[]serializeEncryptedKeyset(KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData, Configuration configuration)Serializes an encrypted keyset in Tink's binary format based on Protobufs, using the providedConfiguration.static byte[]serializeKeyset(KeysetHandle keysetHandle, SecretKeyAccess access)Deprecated.This function should be inlined.static byte[]serializeKeyset(KeysetHandle keysetHandle, SecretKeyAccess access, Configuration configuration)Serializes a keyset in Tink's binary format based on Protobufs, using the providedConfiguration.static byte[]serializeKeysetWithoutSecret(KeysetHandle keysetHandle)
-
-
-
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.GeneralSecurityExceptionDeprecated.This function should be inlined.Parses a keyset in Tink's binary format based on Protobufs, using theRegistryConfiguration.- 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 providedConfiguration.- 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.GeneralSecurityExceptionDeprecated.This function should be inlined.Serializes a keyset in Tink's binary format based on Protobufs, using theRegistryConfiguration.- 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 providedConfiguration.- 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.GeneralSecurityExceptionDeprecated.This function should be inlined.Parses an encrypted keyset in Tink's binary format based on Protobufs, using theRegistryConfiguration.- 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 providedConfiguration.- 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.GeneralSecurityExceptionDeprecated.This function should be inlined.Serializes an encrypted keyset in Tink's binary format based on Protobufs, using theRegistryConfiguration.- 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 providedConfiguration.- Throws:
java.security.GeneralSecurityException
-
-