Class LdapMapContextManager
- java.lang.Object
- 
- org.keycloak.models.map.storage.ldap.store.LdapMapContextManager
 
- 
- All Implemented Interfaces:
- AutoCloseable
 
 public final class LdapMapContextManager extends Object implements AutoCloseable - Author:
- mhajas
 
- 
- 
Constructor SummaryConstructors Constructor Description LdapMapContextManager(KeycloakSession session, LdapMapConfig connectionProperties)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static LdapMapContextManagercreate(KeycloakSession session, LdapMapConfig connectionProperties)LdapContextgetLdapContext()static Hashtable<Object,Object>getNonAuthConnectionProperties(LdapMapConfig ldapMapConfig)This method is used for admin connection and user authentication.static StartTlsResponsestartTLS(LdapContext ldapContext, String authType, String bindDN, char[] bindCredential, SSLSocketFactory sslSocketFactory)
 
- 
- 
- 
Constructor Detail- 
LdapMapContextManagerpublic LdapMapContextManager(KeycloakSession session, LdapMapConfig connectionProperties) 
 
- 
 - 
Method Detail- 
createpublic static LdapMapContextManager create(KeycloakSession session, LdapMapConfig connectionProperties) 
 - 
getLdapContextpublic LdapContext getLdapContext() throws NamingException - Throws:
- NamingException
 
 - 
startTLSpublic static StartTlsResponse startTLS(LdapContext ldapContext, String authType, String bindDN, char[] bindCredential, SSLSocketFactory sslSocketFactory) throws NamingException - Throws:
- NamingException
 
 - 
getNonAuthConnectionPropertiespublic static Hashtable<Object,Object> getNonAuthConnectionProperties(LdapMapConfig ldapMapConfig) This method is used for admin connection and user authentication. Hence it returns just connection properties NOT related to authentication (properties like bindType, bindDn, bindPassword). Caller of this method needs to fill auth-related connection properties based on the fact whether he does admin connection or user authentication
 - 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
 
 
- 
 
-