java.security
public
class
java.security.GuardedObject
GuardedObject controls access to an object, by checking all requests for the
object with a Guard.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
GuardedObject(Object object, Guard guard)
Constructs a GuardedObject to protect access to the specified Object
using the specified Guard.
Parameters
object
| the Object to guard |
guard
| the Guard
|
Public Methods
public
Object
getObject()
Checks whether access should be granted to the object. If access is
granted, this method returns the object. If it is not granted, then a
SecurityException
is thrown.