| Package | Description |
|---|---|
| com.google.crypto.tink | |
| com.google.crypto.tink.integration.android |
| 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
A
KeysetWriter that can write to some source cleartext or encrypted keysets in proto
JSON format. |
| Modifier and Type | Method and Description |
|---|---|
static KeysetWriter |
JsonKeysetWriter.withFile(File file)
Deprecated.
Method should be inlined.
|
static KeysetWriter |
BinaryKeysetWriter.withFile(File file)
Deprecated.
|
static KeysetWriter |
JsonKeysetWriter.withOutputStream(OutputStream stream)
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 |
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. |
| Modifier and Type | Class and Description |
|---|---|
class |
SharedPrefKeysetWriter
A
KeysetWriter that can write keysets to private shared preferences on Android. |