Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 17 jdk.dynalink.jmod - Dynamic Linking Module
JDK 17 jdk.dynalink.jmod is the JMOD file for JDK 17 Dynamic Linking module.
JDK 17 Dynamic Linking module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.dynalink.jmod.
JDK 17 Dynamic Linking module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Dynamic Linking module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.dynalink.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/dynalink/SecureLookupSupplier.java
/*
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package jdk.dynalink;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodHandles.Lookup;
import java.util.Objects;
/**
* Provides security-checked access to a {@code MethodHandles.Lookup} object.
* See {@link #getLookup()} for details.
*/
public class SecureLookupSupplier {
/**
* The name of a runtime permission required to successfully invoke the
* {@link #getLookup()} method.
*/
public static final String GET_LOOKUP_PERMISSION_NAME = "dynalink.getLookup";
private static final RuntimePermission GET_LOOKUP_PERMISSION = new RuntimePermission(SecureLookupSupplier.GET_LOOKUP_PERMISSION_NAME);
private final MethodHandles.Lookup lookup;
/**
* Creates a new secure lookup supplier, securing the passed lookup.
* @param lookup the lookup to secure. Can not be null.
* @throws NullPointerException if null is passed.
*/
public SecureLookupSupplier(final MethodHandles.Lookup lookup) {
this.lookup = Objects.requireNonNull(lookup, "lookup");
}
/**
* Returns the lookup secured by this {@code SecureLookupSupplier}.
* @return the lookup secured by this {@code SecureLookupSupplier}.
* @throws SecurityException if the secured lookup isn't the
* {@link MethodHandles#publicLookup()}, and a security manager is present,
* and a check for {@code RuntimePermission("dynalink.getLookup")} fails.
*/
public final Lookup getLookup() {
@SuppressWarnings("removal")
final SecurityManager sm = System.getSecurityManager();
if (sm != null && lookup != MethodHandles.publicLookup()) {
sm.checkPermission(GET_LOOKUP_PERMISSION);
}
return lookup;
}
/**
* Returns the value of {@link #getLookup()} without a security check. Can
* be used by subclasses to access the lookup quickly.
* @return same as returned value of {@link #getLookup()}.
*/
protected final Lookup getLookupPrivileged() {
return lookup;
}
}
⏎ jdk/dynalink/SecureLookupSupplier.java
Or download all of them as a single archive file:
File name: jdk.dynalink-17.0.5-src.zip File size: 180641 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.editpad.jmod - Edit Pad Module
2023-10-15, ≈13🔥, 0💬
Popular Posts:
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module. JDK 11 Management module ...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
kernel.jar is a component in iText Java library to provide low-level functionalities. iText Java lib...
JDK 11 java.sql.rowset.jmod is the JMOD file for JDK 11 SQL Rowset module. JDK 11 SQL Rowset module ...
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...