Class JwtType

java.lang.Object
org.forgerock.json.jose.jwt.JwtType

public final class JwtType extends Object
A type that stores the media/jwt types for JWTs.
  • Field Details

    • JWT

      public static final JwtType JWT
      Used for plaintext, non-nested signed or non-nested encrypted JWTs.
  • Method Details

    • valueOf

      public static JwtType valueOf(String value)
      Construct the JwtType from a string.
      Parameters:
      value - of type
      Returns:
      JwtType
    • jwtType

      public static JwtType jwtType(String jwtType)
      Construct the JwtType from string.
      Parameters:
      jwtType - a non-null string
      Returns:
      the JwtType.
    • name

      public String name()
      Return the Jwt type.
      Returns:
      the underlying JwtType string value
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object