Class 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 class  LdapUser.DirEntry  
      • Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

        org.elasticsearch.common.io.stream.Writeable.Reader<V extends Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends Object>
    • Field Summary

      • Fields inherited from class com.floragunn.searchguard.user.User

        ANONYMOUS, USER_TENANT
    • Constructor Summary

      Constructors 
      Constructor Description
      LdapUser​(String name, String originalUsername, LdapUser.DirEntry userEntry, com.floragunn.searchguard.user.AuthCredentials credentials, int customAttrMaxValueLen, List<String> whiteListedAttributes)  
    • 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()