Java. security. Guard translation

Source: Internet
Author: User
Tags object object

Overview
Package
Class
Use
Tree
Deprecated
Index
Help
JavaTM 2 Platform
Std. Ed. v1.4.2
PREV CLASS NEXT CLASS
FRAMES NO FRAMES
<! --
If (window = top ){
Document. writeln ('<a href = ".../allclasses-noframe.html"> <B> All Classes </B> </A> ');
}
// -->
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Java. security
Interface Guard
All Known Implementing Classes:
Permission
Public interface Guard
This interface represents a guard, which is an object that is used to protect access to another object. This interface indicates the guard, that is, the object used to protect access to other objects.
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. this interface only contains one checkGuard method and only one object parameter. The getObject method of GuardedObject calls checkGuard to determine whether to allow access to this object.
See Also:
GuardedObject
Method Summary
Void
CheckGuard (Object object)
Determines whether or not to allow access to the guarded object. Determine whether to allow access to the protected object.
Method Detail
CheckGuardpublic void checkGuard (Object object)
Throws SecurityException
Determines whether or not to allow access to the guarded object. Returns silently if access is allowed. Otherwise, throws a SecurityException. Determine whether to allow access to protected object. If the access is allowed, the system returns normally. Otherwise, a SecurityException is thrown.
Parameters:
Object-the object being protected by the guard. protected object.
Throws:
SecurityException-if access is denied. if the access is denied, it is thrown.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.