Class KeyAccess


  • @Immutable
    public final class KeyAccess
    extends java.lang.Object
    An access token for 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.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • publicAccess

        public static KeyAccess publicAccess()
        Returns a KeyAccess instance where canAccessSecret() returns false.
      • canAccessSecret

        public boolean canAccessSecret()
        Returns true if the KeyAccess instance grants access to a key's secret