public class LDAPCache extends Object implements Closeable, NamespaceChangeListener, ObjectChangeListener
| Constructor and Description |
|---|
LDAPCache(LDAPOptions options) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear() |
protected void |
clearCache() |
void |
close() |
protected String[] |
doGetUserDnAndNamespace(String user) |
static LDAPCache |
getCache(LDAPOptions options) |
String[] |
getUserDnAndNamespace(String user) |
String[] |
getUserPubkeys(String userDn) |
String[] |
getUserRoles(String user,
String userDn,
String userDnNamespace) |
void |
namingExceptionThrown(NamingExceptionEvent evt) |
void |
objectAdded(NamingEvent evt) |
void |
objectChanged(NamingEvent evt) |
void |
objectRemoved(NamingEvent evt) |
void |
objectRenamed(NamingEvent evt) |
DirContext |
open() |
protected Set<String> |
tryMappingRole(String role) |
public LDAPCache(LDAPOptions options)
public static void clear()
public static LDAPCache getCache(LDAPOptions options)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic DirContext open() throws NamingException
NamingExceptionpublic String[] getUserDnAndNamespace(String user) throws Exception
Exceptionprotected String[] doGetUserDnAndNamespace(String user) throws NamingException
NamingExceptionpublic String[] getUserRoles(String user, String userDn, String userDnNamespace) throws Exception
Exceptionpublic String[] getUserPubkeys(String userDn) throws NamingException
NamingExceptionpublic void objectAdded(NamingEvent evt)
objectAdded in interface NamespaceChangeListenerpublic void objectRemoved(NamingEvent evt)
objectRemoved in interface NamespaceChangeListenerpublic void objectRenamed(NamingEvent evt)
objectRenamed in interface NamespaceChangeListenerpublic void objectChanged(NamingEvent evt)
objectChanged in interface ObjectChangeListenerpublic void namingExceptionThrown(NamingExceptionEvent evt)
namingExceptionThrown in interface NamingListenerprotected void clearCache()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.