@Immutable public final class KeyAccess extends Object
TinkKey. Access to Tink keys is governed by KeyHandle. A
TinkKey which does not have a secret should be accessible by tokens generated by KeyAccess.publicAccess(). A TinkKey with a secret should need a token generated by
SecretKeyAccess.secretAccess().
Do not use this in new code. Instead, use SecretKeyAccess and
these facilities.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccessSecret()
Returns true if the
KeyAccess instance grants access to a key's secret |
static KeyAccess |
publicAccess()
Returns a
KeyAccess instance where canAccessSecret() returns false. |
public static KeyAccess publicAccess()
KeyAccess instance where canAccessSecret() returns false.public boolean canAccessSecret()
KeyAccess instance grants access to a key's secret