Skip to content

Commit

Permalink
Merge pull request #513 from auth0/restore-with-issuer
Browse files Browse the repository at this point in the history
[SDK-2758] Restore withIssuer
  • Loading branch information
lbalmaceda authored Sep 10, 2021
2 parents 971d6fa + 3ca141b commit fc0ecba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/src/main/java/com/auth0/jwt/interfaces/Verification.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@
* Holds the Claims and claim-based configurations required for a JWT to be considered valid.
*/
public interface Verification {

/**
* Require a specific Issuer ("iss") claim.
*
* @param issuer the required Issuer value.
* @return this same Verification instance.
*/
default Verification withIssuer(String issuer) {
return withIssuer(new String[]{issuer});
}

/**
* Require a specific Issuer ("iss") claim.
*
Expand Down

0 comments on commit fc0ecba

Please sign in to comment.