Module java.naming


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

    Exports
    Package
    Description
    Provides the classes and interfaces for accessing naming services.
    Extends the javax.naming package to provide functionality for accessing directory services.
    Provides support for event notification when accessing naming and directory services.
    Provides support for LDAPv3 extended operations and controls.
     
    Provides the means for dynamically plugging in support for accessing naming and directory services through the javax.naming and related packages.
  • Services

    Uses
    Type
    Description
    Service-provider class for DNS lookups when performing LDAP operations.