com.nimbusds.openid.connect.sdk.util
Interface JWTDecoder

All Known Implementing Classes:
DefaultJWTDecoder

public interface JWTDecoder

Decoder of JSON Web Tokens (JWTs). Handles plain JWTs as well as JWTs secured by means of JSON Web Signature (JWS) and / or JSON Web Encryption (JWE). If the object is secured performs the necessary JWS validation and / or JWE decryption.

Author:
Vladimir Dzhuvinov

Method Summary
 com.nimbusds.jwt.ReadOnlyJWTClaimsSet decodeJWT(com.nimbusds.jwt.JWT jwt)
          Decodes a JWT object, then applies JWS signature validation and / or JWE decryption if the token is secured.
 

Method Detail

decodeJWT

com.nimbusds.jwt.ReadOnlyJWTClaimsSet decodeJWT(com.nimbusds.jwt.JWT jwt)
                                                throws com.nimbusds.jose.JOSEException,
                                                       ParseException
Decodes a JWT object, then applies JWS signature validation and / or JWE decryption if the token is secured.

Parameters:
jwt - The JWT to decode. Must not be null.
Returns:
The JWT claims set.
Throws:
com.nimbusds.jose.JOSEException - If decoding, JWS validation and / or JWE decryption of the JWT failed.
ParseException - If parsing of the JWT claims set failed.


Copyright © 2013 NimbusDS. All Rights Reserved.