| Package | Description |
|---|---|
| com.google.crypto.tink |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryKeysetWriter
A
KeysetWriter that can write to some source cleartext or encrypted keysets in proto binary wire format. |
class |
JsonKeysetWriter
Deprecated.
Serialize the Keyset using
TinkJsonProtoKeysetFormat.serializeKeyset()
instead. |
| Modifier and Type | Method and Description |
|---|---|
static KeysetWriter |
JsonKeysetWriter.withFile(File file)
Deprecated.
Method should be inlined.
|
static KeysetWriter |
BinaryKeysetWriter.withFile(File file)
Deprecated.
Inline the function.
|
static KeysetWriter |
JsonKeysetWriter.withOutputStream(OutputStream stream)
Deprecated.
Static method to create a JsonKeysetWriter that writes to an
OutputStream. |
static KeysetWriter |
BinaryKeysetWriter.withOutputStream(OutputStream stream)
Static method to create a BinaryKeysetWriter that writes to an
OutputStream. |
static KeysetWriter |
JsonKeysetWriter.withPath(Path path)
Deprecated.
Method should be inlined.
|
static KeysetWriter |
JsonKeysetWriter.withPath(String path)
Deprecated.
Method should be inlined.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
LegacyKeysetSerialization.serializeEncryptedKeyset(KeysetHandle keysetHandle,
KeysetWriter writer,
Aead aead,
byte[] associatedData)
Serialize a keyset in an encrypted format to the writer.
|
static void |
LegacyKeysetSerialization.serializeKeyset(KeysetHandle keysetHandle,
KeysetWriter writer,
SecretKeyAccess access)
Serialize a keyset to the writer.
|
static void |
LegacyKeysetSerialization.serializeKeysetWithoutSecret(KeysetHandle keysetHandle,
KeysetWriter writer)
Serialize a keyset to the writer.
|
static void |
CleartextKeysetHandle.write(KeysetHandle handle,
KeysetWriter keysetWriter)
|
void |
KeysetHandle.write(KeysetWriter keysetWriter,
Aead masterKey)
Serializes, encrypts with
masterKey and writes the keyset to outputStream. |
void |
KeysetHandle.writeNoSecret(KeysetWriter writer)
Tries to write to
writer this keyset which must not contain any secret key material. |
void |
KeysetHandle.writeWithAssociatedData(KeysetWriter keysetWriter,
Aead masterKey,
byte[] associatedData)
Serializes, encrypts with
masterKey and writes the keyset to outputStream using
the provided associated data. |