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 17 java.naming.jmod - Naming Module
JDK 17 java.naming.jmod is the JMOD file for JDK 17 Naming module.
JDK 17 Naming module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.naming.jmod.
JDK 17 Naming module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Naming module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.naming.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/naming/internal/ObjectFactoriesFilter.java
/* * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.naming.internal; import sun.security.util.SecurityProperties; import javax.naming.Reference; import java.io.ObjectInputFilter; import java.io.ObjectInputFilter.FilterInfo; import java.io.ObjectInputFilter.Status; /** * This class implements the filter that validates object factories classes instantiated * during {@link Reference} lookups. * There is one system-wide filter instance per VM that can be set via * the {@code "jdk.jndi.object.factoriesFilter"} system property value, or via * setting the property in the security properties file. The system property value supersedes * the security property value. If none of the properties are specified the default * "*" value is used. * The filter is implemented as {@link ObjectInputFilter} with capabilities limited to the * validation of a factory's class types only ({@linkplain FilterInfo#serialClass()}). * Array length, number of object references, depth, and stream size filtering capabilities are * not supported by the filter. */ public final class ObjectFactoriesFilter { /** * Checks if serial filter configured with {@code "jdk.jndi.object.factoriesFilter"} * system property value allows instantiation of the specified objects factory class. * If the filter result is not {@linkplain Status#REJECTED REJECTED}, the filter will * allow the instantiation of objects factory class. * * @param factoryClass objects factory class * @return true - if the factory is allowed to be instantiated; false - otherwise */ public static boolean canInstantiateObjectsFactory(Class<?> factoryClass) { return checkInput(() -> factoryClass); } private static boolean checkInput(FactoryInfo factoryInfo) { Status result = GLOBAL.checkInput(factoryInfo); return result != Status.REJECTED; } // FilterInfo to check if objects factory class is allowed by the system-wide // filter. Array length, number of object references, depth, and stream size // capabilities are ignored. @FunctionalInterface private interface FactoryInfo extends FilterInfo { @Override default long arrayLength() { return -1; } @Override default long depth() { return 1; } @Override default long references() { return 0; } @Override default long streamBytes() { return 0; } } // Prevent instantiation of the factories filter class private ObjectFactoriesFilter() { throw new InternalError("Not instantiable"); } // System property name that contains the patterns to filter object factory names private static final String FACTORIES_FILTER_PROPNAME = "jdk.jndi.object.factoriesFilter"; // Default system property value that allows the load of any object factory classes private static final String DEFAULT_SP_VALUE = "*"; // System wide object factories filter constructed from the system property private static final ObjectInputFilter GLOBAL = ObjectInputFilter.Config.createFilter(getFilterPropertyValue()); // Get security or system property value private static String getFilterPropertyValue() { String propVal = SecurityProperties.privilegedGetOverridable(FACTORIES_FILTER_PROPNAME); return propVal != null ? propVal : DEFAULT_SP_VALUE; } }
⏎ com/sun/naming/internal/ObjectFactoriesFilter.java
Or download all of them as a single archive file:
File name: java.naming-17.0.5-src.zip File size: 490626 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.net.http.jmod - Net HTTP Module
2023-09-23, 6453👍, 0💬
Popular Posts:
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module. JDK 17 Base module compiled class fil...
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...
layout.jar is a component in iText Java library to provide layout functionalities. iText Java librar...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
How to read XML document from socket connections with the socket\DelayedInput.java provided in the A...