java.security

Interface Guard

public interface Guard

This interface specifies a mechanism for querying whether or not access is allowed to a guarded object.

Since: 1.1

See Also: GuardedObject

UNKNOWN: updated to 1.4

Method Summary
voidcheckGuard(Object obj)
This method tests whether or not access is allowed to the specified guarded object.

Method Detail

checkGuard

public void checkGuard(Object obj)
This method tests whether or not access is allowed to the specified guarded object. Access is allowed if this method returns silently. If access is denied, an exception is generated.

Parameters: obj the Object to test

Throws: SecurityException if access to the object is denied