Package com.nimbusds.jwt
Class JWTParser
- java.lang.Object
-
- com.nimbusds.jwt.JWTParser
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JWT
parse(String s)
Parses an unsecured (plain), signed or encrypted JSON Web Token (JWT) from the specified string in compact format.
-
-
-
Method Detail
-
parse
public static JWT parse(String s) throws ParseException
Parses an unsecured (plain), signed or encrypted JSON Web Token (JWT) from the specified string in compact format.- Parameters:
s
- The string to parse. Must not benull
.- Returns:
- The corresponding
PlainJWT
,SignedJWT
orEncryptedJWT
instance. - Throws:
ParseException
- If the string couldn't be parsed to a valid unsecured, signed or encrypted JWT.
-
-