@Singleton public class UnboundLDAPConnector extends Object
| Constructor and Description |
|---|
UnboundLDAPConnector(int connectionTimeout,
TLSProtocolsConfiguration tlsConfiguration,
TrustManagerProvider trustManagerProvider,
EncryptedValueService encryptedValueService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(com.unboundid.ldap.sdk.LDAPConnection connection,
String bindDn,
EncryptedValue password) |
com.unboundid.ldap.sdk.LDAPConnection |
connect(LDAPConnectorConfig ldapConfig) |
LDAPEntry |
createLDAPEntry(com.unboundid.ldap.sdk.Entry entry,
String uniqueIdAttribute) |
LDAPUser |
createLDAPUser(UnboundLDAPConfig config,
com.unboundid.ldap.sdk.Entry entry) |
LDAPUser |
createLDAPUser(UnboundLDAPConfig config,
LDAPEntry ldapEntry) |
com.google.common.collect.ImmutableList<LDAPEntry> |
search(com.unboundid.ldap.sdk.LDAPConnection connection,
String searchBase,
com.unboundid.ldap.sdk.Filter filter,
String uniqueIdAttribute,
Set<String> attributes) |
Optional<LDAPUser> |
searchUserByPrincipal(com.unboundid.ldap.sdk.LDAPConnection connection,
UnboundLDAPConfig config,
String principal) |
Optional<LDAPUser> |
searchUserByUniqueId(com.unboundid.ldap.sdk.LDAPConnection connection,
UnboundLDAPConfig config,
byte[] uniqueId) |
@Inject
public UnboundLDAPConnector(@Named(value="ldap_connection_timeout")
int connectionTimeout,
TLSProtocolsConfiguration tlsConfiguration,
TrustManagerProvider trustManagerProvider,
EncryptedValueService encryptedValueService)
public com.unboundid.ldap.sdk.LDAPConnection connect(LDAPConnectorConfig ldapConfig) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException
GeneralSecurityExceptioncom.unboundid.ldap.sdk.LDAPExceptionpublic com.google.common.collect.ImmutableList<LDAPEntry> search(com.unboundid.ldap.sdk.LDAPConnection connection, String searchBase, com.unboundid.ldap.sdk.Filter filter, String uniqueIdAttribute, Set<String> attributes) throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPExceptionpublic Optional<LDAPUser> searchUserByPrincipal(com.unboundid.ldap.sdk.LDAPConnection connection, UnboundLDAPConfig config, String principal) throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPExceptionpublic Optional<LDAPUser> searchUserByUniqueId(com.unboundid.ldap.sdk.LDAPConnection connection, UnboundLDAPConfig config, byte[] uniqueId) throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPExceptionpublic boolean authenticate(com.unboundid.ldap.sdk.LDAPConnection connection,
String bindDn,
EncryptedValue password)
throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPExceptionpublic LDAPEntry createLDAPEntry(com.unboundid.ldap.sdk.Entry entry, String uniqueIdAttribute)
public LDAPUser createLDAPUser(UnboundLDAPConfig config, com.unboundid.ldap.sdk.Entry entry)
public LDAPUser createLDAPUser(UnboundLDAPConfig config, LDAPEntry ldapEntry)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.