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.naming.jmod - Naming Module
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module.
JDK 11 Naming module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.naming.jmod.
JDK 11 Naming module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Naming module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.naming.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ javax/naming/ldap/InitialLdapContext.java
/* * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.naming.ldap; import javax.naming.*; import javax.naming.directory.*; import java.util.Hashtable; /** * This class is the starting context for performing * LDAPv3-style extended operations and controls. *<p> * See {@code javax.naming.InitialContext} and * {@code javax.naming.InitialDirContext} for details on synchronization, * and the policy for how an initial context is created. * * <h1>Request Controls</h1> * When you create an initial context ({@code InitialLdapContext}), * you can specify a list of request controls. * These controls will be used as the request controls for any * implicit LDAP "bind" operation performed by the context or contexts * derived from the context. These are called <em>connection request controls</em>. * Use {@code getConnectControls()} to get a context's connection request * controls. *<p> * The request controls supplied to the initial context constructor * are <em>not</em> used as the context request controls * for subsequent context operations such as searches and lookups. * Context request controls are set and updated by using * {@code setRequestControls()}. *<p> * As shown, there can be two different sets of request controls * associated with a context: connection request controls and context * request controls. * This is required for those applications needing to send critical * controls that might not be applicable to both the context operation and * any implicit LDAP "bind" operation. * A typical user program would do the following: *<blockquote><pre> * InitialLdapContext lctx = new InitialLdapContext(env, critConnCtls); * lctx.setRequestControls(critModCtls); * lctx.modifyAttributes(name, mods); * Controls[] respCtls = lctx.getResponseControls(); *</pre></blockquote> * It specifies first the critical controls for creating the initial context * ({@code critConnCtls}), and then sets the context's request controls * ({@code critModCtls}) for the context operation. If for some reason * {@code lctx} needs to reconnect to the server, it will use * {@code critConnCtls}. See the {@code LdapContext} interface for * more discussion about request controls. *<p> * Service provider implementors should read the "Service Provider" section * in the {@code LdapContext} class description for implementation details. * * @author Rosanna Lee * @author Scott Seligman * @author Vincent Ryan * * @see LdapContext * @see javax.naming.InitialContext * @see javax.naming.directory.InitialDirContext * @see javax.naming.spi.NamingManager#setInitialContextFactoryBuilder * @since 1.3 */ public class InitialLdapContext extends InitialDirContext implements LdapContext { private static final String BIND_CONTROLS_PROPERTY = "java.naming.ldap.control.connect"; /** * Constructs an initial context using no environment properties or * connection request controls. * Equivalent to {@code new InitialLdapContext(null, null)}. * * @throws NamingException if a naming exception is encountered */ public InitialLdapContext() throws NamingException { super(null); } /** * Constructs an initial context * using environment properties and connection request controls. * See {@code javax.naming.InitialContext} for a discussion of * environment properties. * * <p> This constructor will not modify its parameters or * save references to them, but may save a clone or copy. * Caller should not modify mutable keys and values in * {@code environment} after it has been passed to the constructor. * * <p> {@code connCtls} is used as the underlying context instance's * connection request controls. See the class description * for details. * * @param environment * environment used to create the initial DirContext. * Null indicates an empty environment. * @param connCtls * connection request controls for the initial context. * If null, no connection request controls are used. * * @throws NamingException if a naming exception is encountered * * @see #reconnect * @see LdapContext#reconnect */ @SuppressWarnings("unchecked") public InitialLdapContext(Hashtable<?,?> environment, Control[] connCtls) throws NamingException { super(true); // don't initialize yet // Clone environment since caller owns it. Hashtable<Object,Object> env = (environment == null) ? new Hashtable<>(11) : (Hashtable<Object,Object>)environment.clone(); // Put connect controls into environment. Copy them first since // caller owns the array. if (connCtls != null) { Control[] copy = new Control[connCtls.length]; System.arraycopy(connCtls, 0, copy, 0, connCtls.length); env.put(BIND_CONTROLS_PROPERTY, copy); } // set version to LDAPv3 env.put("java.naming.ldap.version", "3"); // Initialize with updated environment init(env); } /** * Retrieves the initial LDAP context. * * @return The non-null cached initial context. * @exception NotContextException If the initial context is not an * instance of {@code LdapContext}. * @exception NamingException If a naming exception was encountered. */ private LdapContext getDefaultLdapInitCtx() throws NamingException{ Context answer = getDefaultInitCtx(); if (!(answer instanceof LdapContext)) { if (answer == null) { throw new NoInitialContextException(); } else { throw new NotContextException( "Not an instance of LdapContext"); } } return (LdapContext)answer; } // LdapContext methods // Most Javadoc is deferred to the LdapContext interface. public ExtendedResponse extendedOperation(ExtendedRequest request) throws NamingException { return getDefaultLdapInitCtx().extendedOperation(request); } public LdapContext newInstance(Control[] reqCtls) throws NamingException { return getDefaultLdapInitCtx().newInstance(reqCtls); } public void reconnect(Control[] connCtls) throws NamingException { getDefaultLdapInitCtx().reconnect(connCtls); } public Control[] getConnectControls() throws NamingException { return getDefaultLdapInitCtx().getConnectControls(); } public void setRequestControls(Control[] requestControls) throws NamingException { getDefaultLdapInitCtx().setRequestControls(requestControls); } public Control[] getRequestControls() throws NamingException { return getDefaultLdapInitCtx().getRequestControls(); } public Control[] getResponseControls() throws NamingException { return getDefaultLdapInitCtx().getResponseControls(); } }
⏎ javax/naming/ldap/InitialLdapContext.java
Or download all of them as a single archive file:
File name: java.naming-11.0.1-src.zip File size: 461792 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.net.http.jmod - Net HTTP Module
2020-09-30, 60637👍, 0💬
Popular Posts:
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
JDK 11 jdk.internal.vm.ci.jmod is the JMOD file for JDK 11 Internal VM CI module. JDK 11 Internal VM...
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...