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