java.security
Interface Guard

All Known Implementing Classes:
AllPermission, AudioPermission, AuthPermission, AWTPermission, BasicPermission, DelegationPermission, FilePermission, LoggingPermission, ManagementPermission, MBeanPermission, MBeanServerPermission, MBeanTrustPermission, NetPermission, Permission, PrivateCredentialPermission, PropertyPermission, ReflectPermission, RuntimePermission, SecurityPermission, SerializablePermission, ServicePermission, SocketPermission, SQLPermission, SSLPermission, UnresolvedPermission

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

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

Method Detail

checkGuard

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