Package com.google.crypto.tink
Class TinkJsonProtoKeysetFormat
- java.lang.Object
-
- com.google.crypto.tink.TinkJsonProtoKeysetFormat
-
public final class TinkJsonProtoKeysetFormat extends java.lang.ObjectFunctions to parse and serialize Keyset in Tink's JSON format based on Protobufs.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static KeysetHandleparseEncryptedKeyset(java.lang.String serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData)Deprecated.This function should be inlined.static KeysetHandleparseEncryptedKeyset(java.lang.String serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData, Configuration configuration)Parses an encrypted keyset in Tink's JSON format based on Protobufs, using the providedConfiguration.static KeysetHandleparseKeyset(java.lang.String serializedKeyset, SecretKeyAccess access)static KeysetHandleparseKeysetWithoutSecret(java.lang.String serializedKeyset)static java.lang.StringserializeEncryptedKeyset(KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData)Deprecated.This function should be inlined.static java.lang.StringserializeEncryptedKeyset(KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData, Configuration configuration)Serializes an encrypted keyset in Tink's JSON format based on Protobufs, using the providedConfiguration.static java.lang.StringserializeKeyset(KeysetHandle keysetHandle, SecretKeyAccess access)static java.lang.StringserializeKeysetWithoutSecret(KeysetHandle keysetHandle)
-
-
-
Method Detail
-
parseKeyset
public static KeysetHandle parseKeyset(java.lang.String serializedKeyset, SecretKeyAccess access) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
serializeKeyset
public static java.lang.String serializeKeyset(KeysetHandle keysetHandle, SecretKeyAccess access) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
parseKeysetWithoutSecret
public static KeysetHandle parseKeysetWithoutSecret(java.lang.String serializedKeyset) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
serializeKeysetWithoutSecret
public static java.lang.String serializeKeysetWithoutSecret(KeysetHandle keysetHandle) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
parseEncryptedKeyset
@InlineMe(replacement="TinkJsonProtoKeysetFormat.parseEncryptedKeyset(serializedEncryptedKeyset, keysetEncryptionAead, associatedData, RegistryConfiguration.get())", imports={"com.google.crypto.tink.RegistryConfiguration","com.google.crypto.tink.TinkJsonProtoKeysetFormat"}) @Deprecated public static KeysetHandle parseEncryptedKeyset(java.lang.String serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData) throws java.security.GeneralSecurityExceptionDeprecated.This function should be inlined.Parses an encrypted keyset in Tink's JSON format based on Protobufs, using theRegistryConfiguration.- Throws:
java.security.GeneralSecurityException
-
parseEncryptedKeyset
public static KeysetHandle parseEncryptedKeyset(java.lang.String serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData, Configuration configuration) throws java.security.GeneralSecurityException
Parses an encrypted keyset in Tink's JSON format based on Protobufs, using the providedConfiguration.- Throws:
java.security.GeneralSecurityException
-
serializeEncryptedKeyset
@InlineMe(replacement="TinkJsonProtoKeysetFormat.serializeEncryptedKeyset(keysetHandle, keysetEncryptionAead, associatedData, RegistryConfiguration.get())", imports={"com.google.crypto.tink.RegistryConfiguration","com.google.crypto.tink.TinkJsonProtoKeysetFormat"}) @Deprecated public static java.lang.String serializeEncryptedKeyset(KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData) throws java.security.GeneralSecurityExceptionDeprecated.This function should be inlined.Serializes an encrypted keyset in Tink's JSON format based on Protobufs, using theRegistryConfiguration.- Throws:
java.security.GeneralSecurityException
-
serializeEncryptedKeyset
public static java.lang.String serializeEncryptedKeyset(KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData, Configuration configuration) throws java.security.GeneralSecurityException
Serializes an encrypted keyset in Tink's JSON format based on Protobufs, using the providedConfiguration.- Throws:
java.security.GeneralSecurityException
-
-