requireSubject

Adds a validator that requires the sub claim to equal the given value.

Return

this builder for chaining

Parameters

sub

the expected subject string

Throws

if the sub claim is absent during parsing

if the sub claim does not match the expected value