Guard
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
AllPermission,
BasicPermission,
FilePermission,
LinkPermission,
LoggingPermission,
NetPermission,
Permission,
PrivateCredentialPermission,
PropertyPermission,
ReflectPermission,
RuntimePermission,
SQLPermission,
SecurityPermission,
SerializablePermission,
SocketPermission
|
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 or not to allow access to the object.
Public Method Summary
abstract
void
|
checkGuard( Object object)
Determines whether or not to allow access to the guarded object
object .
|
Public Methods
public
abstract
void
checkGuard
(Object object)
Determines whether or not to allow access to the guarded object
object
. Returns silently if access is allowed.
Otherwise, throws a SecurityException.
Parameters
object |
the object being protected by the guard. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-04-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]