Package org.forgerock.json.jose.jwt
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)inthashCode()static JwtTypejwtType(String jwtType)Construct the JwtType from string.Stringname()Return the Jwt type.StringtoString()static JwtTypevalueOf(String value)Construct the JwtType from a string.
-
-
-
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
-
-