Enum Class SSORole

java.lang.Object
java.lang.Enum<SSORole>
com.mapr.baseutils.sso.roles.SSORole
All Implemented Interfaces:
Serializable, Comparable<SSORole>, Constable

public enum SSORole extends Enum<SSORole>
These roles are defined at the LDAP for Data fabric. Either JWT token carries the roles or Role end point of SSO provider can resolve username to LDAP roles.
  • Enum Constant Details

    • DEVELOPER

      public static final SSORole DEVELOPER
    • INFRASTRUCTURE_ADMIN

      public static final SSORole INFRASTRUCTURE_ADMIN
    • FABRIC_MANAGER

      public static final SSORole FABRIC_MANAGER
  • Field Details

    • roleName

      public final String roleName
  • Method Details

    • values

      public static SSORole[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SSORole valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getByName

      public static SSORole getByName(String roleName)
    • getRoleName

      public String getRoleName()