| Modifier and Type | Method and Description |
|---|---|
KeysetHandle |
KeysetHandle.Builder.build()
Creates a new
KeysetHandle. |
static KeysetHandle |
KeysetHandle.createFromKey(KeyHandle keyHandle,
KeyAccess access)
Deprecated.
Use
KeysetHandle.Builder.addEntry instead. |
static KeysetHandle |
CleartextKeysetHandle.fromKeyset(Keyset keyset)
Returns a KeysetHandle for
keyset. |
static KeysetHandle |
KeysetHandle.generateNew(KeyTemplate keyTemplate)
Deprecated.
This method takes a KeyTemplate proto, which is an internal implementation detail.
Please use the generateNew method that takes a
KeyTemplate POJO. |
static KeysetHandle |
KeysetHandle.generateNew(KeyTemplate keyTemplate)
Generates a new
KeysetHandle that contains a single fresh key generated according to
keyTemplate. |
KeysetHandle |
KeysetManager.getKeysetHandle() |
KeysetHandle |
KeysetHandle.getPublicKeysetHandle()
If the managed keyset contains private keys, returns a
KeysetHandle of the public keys. |
static KeysetHandle |
TinkProtoKeysetFormat.parseEncryptedKeyset(byte[] serializedEncryptedKeyset,
Aead keysetEncryptionAead,
byte[] associatedData) |
static KeysetHandle |
TinkJsonProtoKeysetFormat.parseEncryptedKeyset(String serializedEncryptedKeyset,
Aead keysetEncryptionAead,
byte[] associatedData) |
static KeysetHandle |
NoSecretKeysetHandle.parseFrom(byte[] serialized)
Deprecated.
|
static KeysetHandle |
CleartextKeysetHandle.parseFrom(byte[] serialized)
Deprecated.
|
static KeysetHandle |
TinkProtoKeysetFormat.parseKeyset(byte[] serializedKeyset,
SecretKeyAccess access) |
static KeysetHandle |
TinkJsonProtoKeysetFormat.parseKeyset(String serializedKeyset,
SecretKeyAccess access) |
static KeysetHandle |
TinkProtoKeysetFormat.parseKeysetWithoutSecret(byte[] serializedKeyset) |
static KeysetHandle |
TinkJsonProtoKeysetFormat.parseKeysetWithoutSecret(String serializedKeyset) |
static KeysetHandle |
NoSecretKeysetHandle.read(KeysetReader reader)
Deprecated.
|
static KeysetHandle |
CleartextKeysetHandle.read(KeysetReader reader) |
static KeysetHandle |
KeysetHandle.read(KeysetReader reader,
Aead masterKey)
Tries to create a
KeysetHandle from an encrypted keyset obtained via reader. |
static KeysetHandle |
CleartextKeysetHandle.read(KeysetReader reader,
Map<String,String> monitoringAnnotations)
Creates a
KeysetHandle from a KeysetReader. |
static KeysetHandle |
KeysetHandle.readNoSecret(byte[] serialized)
Deprecated.
Use
TinkProtoKeysetFormat.parseKeysetWithoutSecret(serialized) instead. |
static KeysetHandle |
KeysetHandle.readNoSecret(KeysetReader reader)
Tries to create a
KeysetHandle from a keyset, obtained via reader, which
contains no secret key material. |
static KeysetHandle |
KeysetHandle.readWithAssociatedData(KeysetReader reader,
Aead masterKey,
byte[] associatedData)
Tries to create a
KeysetHandle from an encrypted keyset obtained via reader,
using the provided associated data. |
| Modifier and Type | Method and Description |
|---|---|
static Keyset |
CleartextKeysetHandle.getKeyset(KeysetHandle keysetHandle) |
static KeysetHandle.Builder |
KeysetHandle.newBuilder(KeysetHandle handle)
Creates a new builder, initially containing all entries from
handle. |
static byte[] |
TinkProtoKeysetFormat.serializeEncryptedKeyset(KeysetHandle keysetHandle,
Aead keysetEncryptionAead,
byte[] associatedData) |
static String |
TinkJsonProtoKeysetFormat.serializeEncryptedKeyset(KeysetHandle keysetHandle,
Aead keysetEncryptionAead,
byte[] associatedData) |
static byte[] |
TinkProtoKeysetFormat.serializeKeyset(KeysetHandle keysetHandle,
SecretKeyAccess access) |
static String |
TinkJsonProtoKeysetFormat.serializeKeyset(KeysetHandle keysetHandle,
SecretKeyAccess access) |
static byte[] |
TinkProtoKeysetFormat.serializeKeysetWithoutSecret(KeysetHandle keysetHandle) |
static String |
TinkJsonProtoKeysetFormat.serializeKeysetWithoutSecret(KeysetHandle keysetHandle) |
static KeysetManager |
KeysetManager.withKeysetHandle(KeysetHandle val) |
static void |
CleartextKeysetHandle.write(KeysetHandle handle,
KeysetWriter keysetWriter)
|
| Modifier and Type | Method and Description |
|---|---|
static Aead |
AeadFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.GetPrimitive(Aead.class) after registering the AeadWrapper instead. |
| Modifier and Type | Method and Description |
|---|---|
static DeterministicAead |
DeterministicAeadFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.GetPrimitive(DeterministicAead.class) after registering
the DeterministicAeadWrapper instead. |
| Modifier and Type | Method and Description |
|---|---|
static HybridEncrypt |
HybridEncryptFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.GetPrimitive(HybridEncrypt.class) after registering the
HybridEncryptWrapper instead. |
static HybridDecrypt |
HybridDecryptFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.GetPrimitive(HybridDecrypt.class) after registering the
HybridDecryptWrapper instead. |
| Modifier and Type | Method and Description |
|---|---|
KeysetHandle |
AndroidKeysetManager.getKeysetHandle()
Returns a
KeysetHandle of the managed keyset. |
| Modifier and Type | Method and Description |
|---|---|
static KeysetHandle |
JwkSetConverter.toKeysetHandle(String jwkSet,
KeyAccess keyAccess)
Deprecated.
Use JwkSetConverter.toPublicKeysetHandle(jwkSet) instead.
|
static KeysetHandle |
JwkSetConverter.toPublicKeysetHandle(String jwkSet)
Converts a Json Web Key (JWK) set with public keys into a Tink KeysetHandle.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
JwkSetConverter.fromKeysetHandle(KeysetHandle handle,
KeyAccess keyAccess)
Deprecated.
Use JwkSetConverter.fromPublicKeysetHandle(handle) instead.
|
static String |
JwkSetConverter.fromPublicKeysetHandle(KeysetHandle handle)
Converts a Tink KeysetHandle with JWT public keys into a Json Web Key (JWK) set.
|
| Modifier and Type | Method and Description |
|---|---|
static Mac |
MacFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.GetPrimitive(Mac.class) after registering the MacWrapper instead. |
| Modifier and Type | Method and Description |
|---|---|
static PublicKeyVerify |
PublicKeyVerifyFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.GetPrimitive(PublicKeyVerify.class) after registering the
PublicKeyVerifyWrapper instead. |
static PublicKeySign |
PublicKeySignFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.GetPrimitive(PublicKeySign.class) after registering the
PublicKeySignWrapper instead. |
| Modifier and Type | Method and Description |
|---|---|
static StreamingAead |
StreamingAeadFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
|