SecretKeyAccess instead.@Immutable @Deprecated 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().| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccessSecret()
Deprecated.
Returns true if the
KeyAccess instance grants access to a key's secret |
static KeyAccess |
publicAccess()
Deprecated.
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