Package com.floragunn.dlic.auth.ldap
Class LdapUser
- java.lang.Object
-
- com.floragunn.searchguard.user.User
-
- com.floragunn.dlic.auth.ldap.LdapUser
-
- All Implemented Interfaces:
com.floragunn.searchguard.user.CustomAttributesAware,Serializable,org.elasticsearch.common.io.stream.Writeable
public class LdapUser extends com.floragunn.searchguard.user.User- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLdapUser.DirEntry
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<String,String>extractLdapAttributes(String originalUsername, LdapUser.DirEntry userEntry, int customAttrMaxValueLen, List<String> whiteListedAttributes)StringgetDn()StringgetOriginalUsername()LdapUser.DirEntrygetUserEntry()May return null because ldapEntry is transient-
Methods inherited from class com.floragunn.searchguard.user.User
addAttributes, addRole, addRoles, addSearchGuardRoles, copyRolesFrom, equals, getCustomAttributesMap, getName, getRequestedTenant, getRoles, getSearchGuardRoles, hashCode, isInjected, isUserInRole, setInjected, setRequestedTenant, toString, toStringWithAttributes, writeTo
-
-
-
-
Constructor Detail
-
LdapUser
public LdapUser(String name, String originalUsername, LdapUser.DirEntry userEntry, com.floragunn.searchguard.user.AuthCredentials credentials, int customAttrMaxValueLen, List<String> whiteListedAttributes)
-
-
Method Detail
-
getUserEntry
public LdapUser.DirEntry getUserEntry()
May return null because ldapEntry is transient- Returns:
- ldapEntry or null if object was deserialized
-
getDn
public String getDn()
-
getOriginalUsername
public String getOriginalUsername()
-
-