Returns:
JOSE
Parses the given encoded jwt and returns either a JWSInput or JWE depending on the JOSE header configuration.
jwt
JWSInput
JWE
the encoded JWT
a JOSE