Module java.naming

Defines the Java Naming and Directory Interface (JNDI) API.

Common standard JNDI environment properties that may be supported by JNDI providers are defined and documented in Context. Specific JNDI provider implementations may also support other environment properties, which are specific to their implementation.

Implementation Note:
The following implementation specific properties are supported by the default LDAP Naming Service Provider implementation in the JDK:
  • com.sun.jndi.ldap.connect.timeout:
    The value of this property is the string representation of an integer representing the connection timeout in milliseconds. If the LDAP provider cannot establish a connection within that period, it aborts the connection attempt. The integer should be greater than zero. An integer less than or equal to zero means to use the network protocol's (i.e., TCP's) timeout value.
    If this property is not specified, the default is to wait for the connection to be established or until the underlying network times out.
  • com.sun.jndi.ldap.read.timeout:
    The value of this property is the string representation of an integer representing the read timeout in milliseconds for LDAP operations. If the LDAP provider cannot get a LDAP response within that period, it aborts the read attempt. The integer should be greater than zero. An integer less than or equal to zero means no read timeout is specified which is equivalent to waiting for the response infinitely until it is received.
    If this property is not specified, the default is to wait for the response until it is received.
  • com.sun.jndi.ldap.tls.cbtype:
    The value of this property is the string representing the TLS Channel Binding type required for an LDAP connection over SSL/TLS. Possible value is :
    • "tls-server-end-point" - Channel Binding data is created on the basis of the TLS server certificate.

    "tls-unique" TLS Channel Binding type is specified in RFC-5929 but not supported.
    If this property is not specified, the client does not send channel binding information to the server.
Module Graph:
Module graph for java.namingModule graph for java.naming
Since:
9

Packages

Package Description
javax.naming

Provides the classes and interfaces for accessing naming services.

javax.naming.directory

Extends the javax.naming package to provide functionality for accessing directory services.

javax.naming.event

Provides support for event notification when accessing naming and directory services.

javax.naming.ldap

Provides support for LDAPv3 extended operations and controls.

javax.naming.spi

Provides the means for dynamically plugging in support for accessing naming and directory services through the javax.naming and related packages.

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.naming/module-summary.html