aicas logoJamaica 3.2 release 62

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
Status:
updated to 1.4

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

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.