Class JWTParser


  • public final class JWTParser
    extends Object
    Parser for unsecured (plain), signed and encrypted JSON Web Tokens (JWTs).
    Version:
    2015-06-14
    Author:
    Vladimir Dzhuvinov, Junya Hayashi
    • 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 be null.
        Returns:
        The corresponding PlainJWT, SignedJWT or EncryptedJWT instance.
        Throws:
        ParseException - If the string couldn't be parsed to a valid unsecured, signed or encrypted JWT.