| Package | Description |
|---|---|
| com.google.crypto.tink | |
| com.google.crypto.tink.tinkkey |
| 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 KeyAccess |
KeyAccess.publicAccess()
Returns a
KeyAccess instance where canAccessSecret() returns false. |
| Modifier and Type | Method and Description |
|---|---|
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. |
TinkKey |
KeyHandle.getKey(KeyAccess access)
Returns the underlying
TinkKey key if access is a SecretKeyAccess and
the key has a secret, or if the key does not have a secret, otherwise throws a GeneralSecurityException. |