Class SecretKeyAccess


  • @Immutable
    public final class SecretKeyAccess
    extends java.lang.Object
    A class used to generate KeyAccess instances granting secret access.

    This class can be used to keep track of places where secret keys are accessed directly in code, as opposed to indirectly via a primitive.

    Do not use this in new code. Instead, use InsecureSecretKeyAccess instead.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static KeyAccess insecureSecretAccess()
      Returns a KeyAccess instance where canAccessSecret() returns true.
      • Methods inherited from class java.lang.Object

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

      • insecureSecretAccess

        public static KeyAccess insecureSecretAccess()
        Returns a KeyAccess instance where canAccessSecret() returns true.