API to check the Input JWT Token is Signed/Encrypted

Issue #162 resolved
Vinoj Mathew created an issue

Hi there,

Could you please help me to find is there any API available to find the input JWT Token received is Signed or Encrypted.

Basically we received and input JWT Token. Any API to check the input JWT token is Signed or Encrypted.

The trouble i am facing is if the Input JWT Token is NOT Encrypted if i parse it EncryptedJWT encryptedJWT = EncryptedJWT.parse(s)

I am getting the following error: " Unexpected number of Base64URL parts, must be five"

SignedJWT signedJWT = SignedJWT.parse(s); ----This works fine.

I am not sure of the Input JWT Token either signed/encrypted.

please let me know. thanks

Comments (2)

  1. Log in to comment