Enum Class PrivateClaim

java.lang.Object
java.lang.Enum<PrivateClaim>
dev.getelements.elements.sdk.model.auth.PrivateClaim
All Implemented Interfaces:
Serializable, Comparable<PrivateClaim>, Constable

public enum PrivateClaim extends Enum<PrivateClaim>
Enumeration of the private claims elements uses when processing JWT tokens.
  • Enum Constant Details

    • AUTH_TYPE

      public static final PrivateClaim AUTH_TYPE
      The auth type.
    • USER_KEY

      public static final PrivateClaim USER_KEY
      The user key.
    • USER

      public static final PrivateClaim USER
      The user model.
  • Method Details

    • values

      public static PrivateClaim[] 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 PrivateClaim 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
    • getValue

      public String getValue()
      Gets the literal value of the claim.
      Returns:
      the literal value