| 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. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BindingThis class represents a name-to-object binding found in a context. | 
| Modifier and Type | Method and Description | 
|---|---|
| NamingEnumeration<NameClassPair> | InitialContext. list(Name name) | 
| NamingEnumeration<NameClassPair> | Context. list(Name name)Enumerates the names bound in the named context, along with the
 class names of objects bound to them. | 
| NamingEnumeration<NameClassPair> | InitialContext. list(String name) | 
| NamingEnumeration<NameClassPair> | Context. list(String name)Enumerates the names bound in the named context, along with the
 class names of objects bound to them. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SearchResultThis class represents an item in the NamingEnumeration returned as a
 result of the DirContext.search() methods. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.