Guard


Guard java.security

Java 1.2

This interface guards access to an object. The checkGuard( ) method is passed an object to which access has been requested . If access should be granted, checkGuard( ) should return silently. Otherwise, if access is denied , checkGuard( ) should throw a java.lang.SecurityException . The Guard object is used primarily by the GuardedObject class. Note that all Permission objects implement the Guard interface.

 public interface  Guard  {  // Public Instance Methods  void  checkGuard  (Object  object  ) throws SecurityException;   } 

Implementations

Permission

Passed To

GuardedObject.GuardedObject( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net