Top Description Methods
java.security

public Interface Guard

Known Direct Implementers
java.security.Permission

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.

Authors
Roland Schemers, Li Gong
Since
1.2
See Also
GuardedObject

Method Summary

Modifier and TypeMethod and Description
public void
checkGuard(Object
the object being protected by the guard.
object
)

Determines whether to allow access to the guarded object object.

Method Detail

checkGuardback to summary
public void checkGuard(Object object) throws SecurityException

Determines whether to allow access to the guarded object object. Returns silently if access is allowed. Otherwise, throws a SecurityException.

Parameters
object:Object

the object being protected by the guard.

Exceptions
SecurityException:
if access is denied.