| 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)
Deprecated.
Instead, use a
KeysetHandle.Builder. |
static KeysetHandle |
KeysetHandle.generateNew(KeyTemplate keyTemplate)
Deprecated.
Use the overload taking a Parameters object instead.
|
static KeysetHandle |
KeysetHandle.generateNew(KeyTemplate keyTemplate)
Generates a new
KeysetHandle that contains a single fresh key generated according to
keyTemplate. |
static KeysetHandle |
KeysetHandle.generateNew(Parameters parameters)
Generates a new
KeysetHandle that contains a single fresh key generated key with the
given Parameters object. |
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 |
LegacyKeysetSerialization.parseEncryptedKeyset(KeysetReader reader,
Aead aead,
byte[] associatedData)
Parse an encrypted keyset from the reader.
|
static KeysetHandle |
TinkJsonProtoKeysetFormat.parseEncryptedKeyset(String serializedEncryptedKeyset,
Aead keysetEncryptionAead,
byte[] associatedData) |
static KeysetHandle |
NoSecretKeysetHandle.parseFrom(byte[] serialized)
Deprecated.
|
static KeysetHandle |
CleartextKeysetHandle.parseFrom(byte[] serialized)
Deprecated.
Call
TinkProtoKeysetFormat.parseKeyset(serialized,
InsecureSecretKeyAccess.get()) which has the same semantics. |
static KeysetHandle |
TinkProtoKeysetFormat.parseKeyset(byte[] serializedKeyset,
SecretKeyAccess access) |
static KeysetHandle |
LegacyKeysetSerialization.parseKeyset(KeysetReader reader,
SecretKeyAccess access)
Parse a keyset from the reader.
|
static KeysetHandle |
TinkJsonProtoKeysetFormat.parseKeyset(String serializedKeyset,
SecretKeyAccess access) |
static KeysetHandle |
TinkProtoKeysetFormat.parseKeysetWithoutSecret(byte[] serializedKeyset) |
static KeysetHandle |
LegacyKeysetSerialization.parseKeysetWithoutSecret(KeysetReader reader)
Parse a KeysetHandle from the reader.
|
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)
Deprecated.
New users should prefer TinkProtoKeysetFormat. Existing users can use
LegacyKeysetSerialization for exactly the same behavior.
|
static KeysetHandle |
CleartextKeysetHandle.read(KeysetReader reader,
Map<String,String> monitoringAnnotations)
Deprecated.
Instead, use a
KeysetHandle.Builder. |
static KeysetHandle |
KeysetHandle.readNoSecret(byte[] serialized)
Deprecated.
Call {TinkProtoKeysetFormat.parseKeysetWithoutSecret} instead.
|
static KeysetHandle |
KeysetHandle.readNoSecret(KeysetReader reader)
Deprecated.
New users should prefer TinkProtoKeysetFormat. Existing users can use
LegacyKeysetSerialization for exactly the same behavior.
|
static KeysetHandle |
KeysetHandle.readWithAssociatedData(KeysetReader reader,
Aead masterKey,
byte[] associatedData)
Deprecated.
New users should prefer TinkProtoKeysetFormat. Existing users can use
LegacyKeysetSerialization for exactly the same behavior.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
KeysetHandle.equalsKeyset(KeysetHandle other)
Returns true if this keyset is equal to
other, ignoring monitoring annotations. |
static Keyset |
CleartextKeysetHandle.getKeyset(KeysetHandle keysetHandle)
Deprecated.
Instead, call "KeysetHandle.getAt()" to get information about individual keys or
TinkProtoKeysetFormat if you need a serialized keyset.
|
static KeysetInfo |
LegacyKeysetSerialization.getKeysetInfo(KeysetHandle handle)
Returns the
KeysetInfo proto of the given 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 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 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 void |
LegacyKeysetSerialization.serializeKeysetWithoutSecret(KeysetHandle keysetHandle,
KeysetWriter writer)
Serialize a keyset to the writer.
|
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(RegistryConfiguration.get(), Aead.class)
after registering the AeadWrapper instead. |
| Modifier and Type | Method and Description |
|---|---|
static DeterministicAead |
DeterministicAeadFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.getPrimitive(RegistryConfiguration.get(),
DeterministicAead.class) after registering the DeterministicAeadWrapper instead. |
| Modifier and Type | Method and Description |
|---|---|
static HybridEncrypt |
HybridEncryptFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.getPrimitive(RegistryConfiguration.get(),
HybridEncrypt.class) after registering the HybridEncryptWrapper instead. |
static HybridDecrypt |
HybridDecryptFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.getPrimitive(RegistryConfiguration.get(),
HybridDecrypt.class) after registering the HybridDecryptWrapper instead. |
| 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 |
|---|---|
KeysetHandle |
KeysetDeriver.deriveKeyset(byte[] salt) |
| Modifier and Type | Method and Description |
|---|---|
static Mac |
MacFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.getPrimitive(RegistryConfiguration.get(), Mac.class) after
registering the MacWrapper instead. |
| Modifier and Type | Method and Description |
|---|---|
static PublicKeyVerify |
PublicKeyVerifyFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.getPrimitive(RegistryConfiguration.get(),
PublicKeyVerify.class) after registering the PublicKeyVerifyWrapper instead. |
static PublicKeySign |
PublicKeySignFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.getPrimitive(RegistryConfiguration.get(),
PublicKeySign.class) after registering the PublicKeySignWrapper instead. |
| Modifier and Type | Method and Description |
|---|---|
static StreamingAead |
StreamingAeadFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
|