| Package | Description |
|---|---|
| com.google.crypto.tink |
| Modifier and Type | Method and Description |
|---|---|
KeysetManager |
KeysetManager.add(KeyHandle keyHandle)
Adds the input
KeyHandle to the existing keyset. |
KeysetManager |
KeysetManager.add(KeyHandle keyHandle,
KeyAccess access)
Adds the input
KeyHandle to the existing keyset with OutputPrefixType.TINK. |
KeysetManager |
KeysetManager.add(KeyTemplate keyTemplate)
Deprecated.
This method takes a KeyTemplate proto, which is an internal implementation detail.
Please use the add method that takes a
KeyTemplate POJO. |
KeysetManager |
KeysetManager.add(KeyTemplate keyTemplate)
Generates and adds a fresh key generated using
keyTemplate. |
KeysetManager |
KeysetManager.delete(int keyId)
Deletes the key with
keyId. |
KeysetManager |
KeysetManager.destroy(int keyId)
Destroys the key material associated with the
keyId. |
KeysetManager |
KeysetManager.disable(int keyId)
Disables the key with
keyId. |
KeysetManager |
KeysetManager.enable(int keyId)
Enables the key with
keyId. |
KeysetManager |
KeysetManager.promote(int keyId)
Deprecated.
use
setPrimary |
KeysetManager |
KeysetManager.rotate(KeyTemplate keyTemplate)
Deprecated.
Please use
add(com.google.crypto.tink.proto.KeyTemplate). This method adds a new key and immediately promotes it to
primary. However, when you do keyset rotation, you almost never want to make the new key
primary, because old binaries don't know the new key yet. |
KeysetManager |
KeysetManager.setPrimary(int keyId)
Sets the key with
keyId as primary. |
static KeysetManager |
KeysetManager.withEmptyKeyset() |
static KeysetManager |
KeysetManager.withKeysetHandle(KeysetHandle val) |