Overview Package Class Use tree deprecated Index help JAVATM 2 Platform
Std. Ed. v1.4.2 PREV CLASS NEXT classframes NO FRAMES all Classes summary:nested | FIELD | Constr | Methoddetail:field | Constr | Method
Java.security
Interface Guard
-
All known implementing Classes:
-
Permission
-
public interface Guard
This interface represents a guard, which are an object that is used to protect access to another object. This interface represents a guard, which is used to protect objects that are accessed to other objects.
This is interface contains a single and Checkguard, with a single object argument. Checkguard is invoked (by the Guardedobject GetObject method) to determine whether or don't to allow access to the object. The interface contains only one Checkguard method and only one object parameter. Called Checkguard by the Guardedobject GetObject method to determine whether to allow access to the object.
-
Also:
-
Guardedobject
Method Summary Voidcheckguard (Object object)
Determines whether or not to allow access to the guarded object. Determines whether to allow access to protected object objects.
Method Detail
Checkguard
public void Checkguard (Object object) throws SecurityException
-
Determines whether or not to allow access to the guarded object. Returns silently if access is allowed. Otherwise, throws a SecurityException. Determines whether to allow access to protected object objects. If access is allowed, return normally, otherwise throw SecurityException.
-
-
Parameters:
-
Object-the object being protected by the guard. The protected object.
-
Throws:
-
securityexception-if access is denied. If access is refused to be thrown.
Overview Package Class Use tree deprecated Index help JAVATM 2 Platform
Std. Ed. v1.4.2 PREV CLASS NEXT classframes NO FRAMES all Classes summary: nested | field | constr | methoddetail: field | constr | method Submit a bug or feature
for further API reference and developer documentation, The Java 2 SDK SE Developer documentation. That is documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of term s, workarounds, and working code examples.
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use are subject to license terms. Also the documentation redistribution policy.