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 Modifier and Type Method Description static KeysetHandleparseEncryptedKeyset(java.lang.String serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData)static KeysetHandleparseKeyset(java.lang.String serializedKeyset, SecretKeyAccess access)static KeysetHandleparseKeysetWithoutSecret(java.lang.String serializedKeyset)static java.lang.StringserializeEncryptedKeyset(KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData)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
public static KeysetHandle parseEncryptedKeyset(java.lang.String serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
serializeEncryptedKeyset
public static java.lang.String serializeEncryptedKeyset(KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
-