| Modifier and Type | Method and Description |
|---|---|
static JWT |
parse(String s)
Parses a plain, signed or encrypted JSON Web Token (JWT) from the
specified string in compact format.
|
static <T> T |
parse(String s,
JWTHandler<T> handler)
Parses a plain, signed or encrypted JSON Web Token (JWT) from the
specified string in compact format.
|
public static JWT parse(String s) throws ParseException
s - The string to parse. Must not be null.PlainJWT, SignedJWT or
EncryptedJWT instance.ParseException - If the string couldn't be parsed to a valid
plain, signed or encrypted JWT.public static <T> T parse(String s, JWTHandler<T> handler) throws ParseException
s - The string to parse. Must not be null.handler - Handler for the parsed JWT. Must not be null.null if none is
returned.ParseException - If the string couldn't be parsed to a valid
plain, signed or encrypted JWT.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.