Class JwtType


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

      • JWT

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

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object