java.lang.Object | |
↳ | java.security.GuardedObject |
GuardedObject
controls access to an object, by checking all requests
for the object with a Guard
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of
GuardedObject which protects access
to the specified Object using the specified Guard .
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the guarded
Object if the associated Guard
permits access.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructs a new instance of GuardedObject
which protects access
to the specified Object
using the specified Guard
.
object | the Object to protect. |
---|---|
guard | the Guard which protects the specified Object ,
maybe null .
|
Returns the guarded Object
if the associated Guard
permits access. If access is not granted, then a SecurityException
is thrown.
SecurityException | if access is not granted to the guarded object. |
---|