Constructor and Description |
---|
LdapUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
closeContext(LdapContext ctx)
Closes an LDAP context, logging any errors, but not throwing
an exception if there is a failure.
|
static void |
closeEnumeration(NamingEnumeration ne) |
static Collection<String> |
getAllAttributeValues(Attribute attr)
Helper method used to retrieve all attribute values from a particular context attribute.
|
public LdapUtils()
public static void closeContext(LdapContext ctx)
ctx
- the LDAP context to close.public static Collection<String> getAllAttributeValues(Attribute attr) throws NamingException
attr
- the LDAP attribute.NamingException
- if there is an LDAP error while reading the values.public static void closeEnumeration(NamingEnumeration ne)
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.