This method uses the underlying method Option[Iat], Option[Sub],Option[Jti],String),
by providing the secret with String#getBytes(StandardCharsets#UTF_8)
Attempts to construct a DecodedJwt from an encoded jwt.
Attempts to construct a DecodedJwt from an encoded jwt.
Any fields found in the jwt that are not in either the required set or the ignore set, will cause validation to fail. Including an algorithm field in the requiredHeaders set is not needed, instead use the requiredAlg parameter.
an encrypted jwt
the key to use when validating the signature
the algorithm to require and use when validating the signature
the headers the encrypted jwt is required to use
the claims the encrypted jwt is required to use
the headers to ignore should the encrypted jwt use them
the claims to ignore should the encrypted jwt use them
used optionally, when you want to only validate a jwt where its required iss claim is equal to this
used optionally, when you want to only validate a jwt where its required aud claim is equal to this
used optionally, when you want to only validate a jwt where its required iat claim is equal to this
used optionally, when you want to only validate a jwt where its required sub claim is equal to this
used optionally, when you want to only validate a jwt where its required jti claim is equal to this
returns a DecodedJwt wrapped in Success when successful, otherwise Failure