requireAudience

Adds a validator that requires the aud claim to contain the given value.

Return

this builder for chaining

Parameters

aud

the audience value that must be present in the token's aud claim

Throws

if the aud claim is absent during parsing

if the aud claim does not contain the expected value