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