Module java.base
Package java.security

Interface Guard

    • Method Detail

      • checkGuard

        void checkGuard​(Object object)
                 throws SecurityException
        Determines whether or not to allow access to the guarded object object. Returns silently if access is allowed. Otherwise, throws a SecurityException.
        Parameters:
        object - the object being protected by the guard.
        Throws:
        SecurityException - if access is denied.