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/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, org.ldaptive.LdapEntry userEntry, com.floragunn.searchguard.user.AuthCredentials credentials, int customAttrMaxValueLen, List<String> whiteListedAttributes)  
    • Constructor Detail

      • LdapUser

        public LdapUser​(String name,
                        String originalUsername,
                        org.ldaptive.LdapEntry userEntry,
                        com.floragunn.searchguard.user.AuthCredentials credentials,
                        int customAttrMaxValueLen,
                        List<String> whiteListedAttributes)
    • Method Detail

      • getUserEntry

        public org.ldaptive.LdapEntry getUserEntry()
        May return null because ldapEntry is transient
        Returns:
        ldapEntry or null if object was deserialized
      • getDn

        public String getDn()
      • getOriginalUsername

        public String getOriginalUsername()
      • extractLdapAttributes

        public static Map<String,​String> extractLdapAttributes​(String originalUsername,
                                                                     org.ldaptive.LdapEntry userEntry,
                                                                     int customAttrMaxValueLen,
                                                                     List<String> whiteListedAttributes)