Java.security.Guard translation

Source: Internet
Author: User
Tags contains deprecated documentation interface object object prev access
Overview Package Class Use tree deprecated Index help JAVATM 2 Platform
Std. Ed. v1.4.2 PREV CLASS NEXT classframes NO FRAMES all Classes summary:nested | FIELD | Constr | Methoddetail:field | Constr | Method

Java.security
Interface Guard

All known implementing Classes:
Permission
public interface Guard

This interface represents a guard, which are an object that is used to protect access to another object. This interface represents a guard, which is used to protect objects that are accessed to other objects.

This is interface contains a single and Checkguard, with a single object argument. Checkguard is invoked (by the Guardedobject GetObject method) to determine whether or don't to allow access to the object. The interface contains only one Checkguard method and only one object parameter. Called Checkguard by the Guardedobject GetObject method to determine whether to allow access to the object.

Also:
Guardedobject

Method Summary Voidcheckguard (Object object)
Determines whether or not to allow access to the guarded object. Determines whether to allow access to protected object objects.

Method Detail

Checkguard

public 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. Determines whether to allow access to protected object objects. If access is allowed, return normally, otherwise throw SecurityException.

Parameters:
Object-the object being protected by the guard. The protected object.
Throws:
securityexception-if access is denied. If access is refused to be thrown.
Overview Package Class Use tree deprecated Index help JAVATM 2 Platform
Std. Ed. v1.4.2 PREV CLASS NEXT classframes NO FRAMES all Classes summary: nested | field | constr | methoddetail: field  | constr | method Submit a bug or feature
for further API reference and developer documentation, The Java 2 SDK SE Developer documentation. That is documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of term s, workarounds, and working code examples.

Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use are subject to license terms. Also the documentation redistribution policy.




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.