public interface LdapService
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(LdapUserContext userContext,
String password)
Authenticates a user with its context
|
LdapUserContext |
createUserContext(String dn)
Creates a new DefaultLDAPUserContext knowing the dn of the user.
|
LdapUserContext |
findUser(String identityAttributeValue)
Creates a new DefaultLDAPUserContext based on the identifying attribute of the user.
|
String |
getAttributeValue(LdapUserContext userContext,
String attribute)
Gives the value of the attribute name passed as parameter.
|
Map<String,String> |
getAttributeValues(LdapUserContext userContext,
String... attributes)
Gives the value of the attribute names passed as parameters.
|
Set<String> |
retrieveUserGroups(LdapUserContext userContext)
Finds all the groups in which the user is defined as a member.
|
LdapUserContext createUserContext(String dn)
dn - the dn of the userLdapUserContext findUser(String identityAttributeValue)
identityAttributeValue - the value of the identifying attribute to searchvoid authenticate(LdapUserContext userContext, String password)
userContext - the context of a userString getAttributeValue(LdapUserContext userContext, String attribute)
userContext - the DefaultLDAPUserContext usedattribute - the name of the attributeMap<String,String> getAttributeValues(LdapUserContext userContext, String... attributes)
userContext - the DefaultLDAPUserContext usedattributes - the names of the attributesSet<String> retrieveUserGroups(LdapUserContext userContext)
userContext - the userContext to useCopyright © 2013-2018–2019 SeedStack. All rights reserved.