public final class TinkProtoKeysetFormat extends Object
| Modifier and Type | Method and Description |
|---|---|
static KeysetHandle |
parseEncryptedKeyset(byte[] serializedEncryptedKeyset,
Aead keysetEncryptionAead,
byte[] associatedData) |
static KeysetHandle |
parseKeyset(byte[] serializedKeyset,
SecretKeyAccess access) |
static KeysetHandle |
parseKeysetWithoutSecret(byte[] serializedKeyset) |
static byte[] |
serializeEncryptedKeyset(KeysetHandle keysetHandle,
Aead keysetEncryptionAead,
byte[] associatedData) |
static byte[] |
serializeKeyset(KeysetHandle keysetHandle,
SecretKeyAccess access) |
static byte[] |
serializeKeysetWithoutSecret(KeysetHandle keysetHandle) |
public static KeysetHandle parseKeyset(byte[] serializedKeyset, SecretKeyAccess access) throws GeneralSecurityException
GeneralSecurityExceptionpublic static byte[] serializeKeyset(KeysetHandle keysetHandle, SecretKeyAccess access) throws GeneralSecurityException
GeneralSecurityExceptionpublic static KeysetHandle parseKeysetWithoutSecret(byte[] serializedKeyset) throws GeneralSecurityException
GeneralSecurityExceptionpublic static byte[] serializeKeysetWithoutSecret(KeysetHandle keysetHandle) throws GeneralSecurityException
GeneralSecurityExceptionpublic static KeysetHandle parseEncryptedKeyset(byte[] serializedEncryptedKeyset, Aead keysetEncryptionAead, byte[] associatedData) throws GeneralSecurityException
GeneralSecurityExceptionpublic static byte[] serializeEncryptedKeyset(KeysetHandle keysetHandle, Aead keysetEncryptionAead, byte[] associatedData) throws GeneralSecurityException
GeneralSecurityException