| Package | Description |
|---|---|
| com.google.crypto.tink | |
| com.google.crypto.tink.tinkkey |
| Modifier and Type | Method and Description |
|---|---|
KeyHandle |
KeysetHandle.primaryKey()
Searches the keyset to find the primary key of this
KeysetHandle, and returns the key
wrapped in a KeyHandle. |
| Modifier and Type | Method and Description |
|---|---|
KeysetManager |
KeysetManager.add(KeyHandle keyHandle,
KeyAccess access)
Adds the input
KeyHandle to the existing keyset with OutputPrefixType.TINK. |
static KeysetHandle |
KeysetHandle.createFromKey(KeyHandle keyHandle,
KeyAccess access)
Creates a
KeysetHandle that contains the single KeyHandle passed as input. |
| Modifier and Type | Method and Description |
|---|---|
static KeyHandle |
KeyHandle.createFromKey(com.google.crypto.tink.proto.KeyData keyData,
KeyTemplate.OutputPrefixType opt)
Returns a
KeyHandle instance where the underlying TinkKey wraps the input
keyData. |
static KeyHandle |
KeyHandle.createFromKey(TinkKey key,
KeyAccess access)
Returns a
KeyHandle instance with key as the underlying TinkKey if the
caller provides the correct KeyAccess instance. |