All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.landoop.lenses.security.ldap.UserInfo Maven / Gradle / Ivy

Go to download

Lenses library providing the interface a customer will have to implement in order to provide LDAP user roles/groups for the authenticated user

The newest version!
package com.landoop.lenses.security.ldap;

import java.util.Set;

/**
 * Contains the user full name and its user group names
 */
public class UserInfo {
  private final String userName;
  private final Set groups;

  public UserInfo(String userName, Set groups) {
    this.userName = userName;
    this.groups = groups;
  }

  /**
   * Returns the user full name. If it is not setup returns null.
   *
   * @return The user full name or {@code null} if it does not exists. if {@code null} is provided Lenses will use the user identifier.
   */
  public String getUserName() {
    return userName;
  }

  /**
   * Returns all the Lenses roles for the user
   *
   * @return A set of Lenses roles for the current user.
   */
  public Set getGroups() {
    return groups;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy