com.nimbusds.jwt
Class JWTParser

java.lang.Object
  extended by com.nimbusds.jwt.JWTParser

public final class JWTParser
extends Object

Parser for plain, signed and encrypted JSON Web Tokens (JWTs).

Version:
$version$ (2012-09-28)
Author:
Vladimir Dzhuvinov

Method Summary
static JWT parse(String s)
          Parses a plain, signed or encrypted JSON Web Token (JWT) from the specified string in compact format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static JWT parse(String s)
                 throws ParseException
Parses a 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 plain, signed or encrypted JWT.


Copyright © 2013 NimbusDS. All Rights Reserved.