This interface represents a guard, which is an object that is used to protect access to another object.
This interface contains a single method, checkGuard
,
with a single object
argument. checkGuard
is
invoked (by the GuardedObject getObject
method)
to determine whether to allow access to the object.
GuardedObject
Modifier and Type | Method and Description |
---|---|
public void | checkGuard(Object
the object being protected by the guard. object)Determines whether to allow access to the guarded object
|
checkGuard | back to summary |
---|---|
public void checkGuard(Object object) throws SecurityException Determines whether to allow access to the guarded object
|