parseSigned

Parses and validates a JWS compact token, returning the signed JwtInstance.Jws.

Tokens with alg=none (unsecured) are rejected unless JwtParserBuilder.allowUnsecured was set to true on the builder (RFC 7515).

Return

the parsed and verified JwtInstance.Jws

Parameters

token

the JWS compact serialization to parse (must be exactly 3 dot-separated parts)

See also

Throws

if the token is not a valid 3-part JWT

if the algorithm is unrecognised, or if alg=none and unsecured tokens are not allowed

if the signature does not verify

if the token is past its expiration

if the token is not yet valid

if a required claim is absent

if a required claim has an unexpected value