Class User

    • Method Detail

      • getRoles

        public final Set<String> getRoles()
        Returns:
        A unmodifiable set of the backend roles this user is a member of
      • addRole

        public final void addRole​(String role)
        Associate this user with a backend role
        Parameters:
        role - The backend role
      • addRoles

        public final void addRoles​(Collection<String> roles)
        Associate this user with a set of backend roles
        Parameters:
        roles - The backend roles
      • isUserInRole

        public final boolean isUserInRole​(String role)
        Check if this user is a member of a backend role
        Parameters:
        role - The backend role
        Returns:
        true if this user is a member of the backend role, false otherwise
      • addAttributes

        @Deprecated
        public final void addAttributes​(Map<String,​String> attributes)
        Deprecated.
        Use structured attributes instead
      • getRequestedTenant

        public final String getRequestedTenant()
      • setRequestedTenant

        public final void setRequestedTenant​(String requestedTenant)
      • isInjected

        public boolean isInjected()
      • setInjected

        public void setInjected​(boolean isInjected)
      • toStringWithAttributes

        public final String toStringWithAttributes()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • getCustomAttributesMap

        @Deprecated
        public final Map<String,​String> getCustomAttributesMap()
        Deprecated.
        use getStructuredAttributes() instead
        Get the custom attributes associated with this user
        Specified by:
        getCustomAttributesMap in interface CustomAttributesAware
        Returns:
        A modifiable map with all the current custom attributes associated with this user
      • getStructuredAttributes

        public Map<String,​Object> getStructuredAttributes()
      • addStructuredAttribute

        public void addStructuredAttribute​(String key,
                                           Object value)
      • addStructuredAttributesByJsonPath

        public void addStructuredAttributesByJsonPath​(Map<String,​com.jayway.jsonpath.JsonPath> jsonPathMap,
                                                      Object source)
      • addSearchGuardRoles

        public final void addSearchGuardRoles​(Collection<String> sgRoles)
      • getSearchGuardRoles

        public final Set<String> getSearchGuardRoles()
      • getType

        public String getType()
      • getSpecialAuthzConfig

        public Object getSpecialAuthzConfig()
      • isAuthzComplete

        public boolean isAuthzComplete()
      • setAuthDomain

        public void setAuthDomain​(String authDomain)