Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/security/GuardedObject.java
/* * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.security; /** * A GuardedObject is an object that is used to protect access to * another object. * * <p>A GuardedObject encapsulates a target object and a Guard object, * such that access to the target object is possible * only if the Guard object allows it. * Once an object is encapsulated by a GuardedObject, * access to that object is controlled by the {@code getObject} * method, which invokes the * {@code checkGuard} method on the Guard object that is * guarding access. If access is not allowed, * an exception is thrown. * * @see Guard * @see Permission * * @author Roland Schemers * @author Li Gong * @since 1.2 */ public class GuardedObject implements java.io.Serializable { private static final long serialVersionUID = -5240450096227834308L; private Object object; // the object we are guarding private Guard guard; // the guard /** * Constructs a GuardedObject using the specified object and guard. * If the Guard object is null, then no restrictions will * be placed on who can access the object. * * @param object the object to be guarded. * * @param guard the Guard object that guards access to the object. */ public GuardedObject(Object object, Guard guard) { this.guard = guard; this.object = object; } /** * Retrieves the guarded object, or throws an exception if access * to the guarded object is denied by the guard. * * @return the guarded object. * * @exception SecurityException if access to the guarded object is * denied. */ public Object getObject() throws SecurityException { if (guard != null) guard.checkGuard(object); return object; } /** * Writes this object out to a stream (i.e., serializes it). * We check the guard if there is one. */ private void writeObject(java.io.ObjectOutputStream oos) throws java.io.IOException { if (guard != null) guard.checkGuard(object); oos.defaultWriteObject(); } }
⏎ java/security/GuardedObject.java
Or download all of them as a single archive file:
File name: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 204243👍, 0💬
Popular Posts:
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...
kernel.jar is a component in iText Java library to provide low-level functionalities. iText Java lib...
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...