|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shiro.realm.ldap.LdapUtils
public class LdapUtils
Utility class providing static methods to make working with LDAP easier.
| Method Summary | |
|---|---|
static void |
closeContext(LdapContext ctx)
Closes an LDAP context, logging any errors, but not throwing an exception if there is a failure. |
static Collection<String> |
getAllAttributeValues(Attribute attr)
Helper method used to retrieve all attribute values from a particular context attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||