From 5fa3fe310f69fd31a4349f352a9a87218bf56edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Skj=C3=B8lberg?= Date: Fri, 14 Feb 2020 18:53:54 +0100 Subject: [PATCH] Fix Javadoc --- .../com/auth0/jwt/interfaces/Verification.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/src/main/java/com/auth0/jwt/interfaces/Verification.java b/lib/src/main/java/com/auth0/jwt/interfaces/Verification.java index f4fd9d8b..dec868fb 100644 --- a/lib/src/main/java/com/auth0/jwt/interfaces/Verification.java +++ b/lib/src/main/java/com/auth0/jwt/interfaces/Verification.java @@ -161,17 +161,25 @@ public interface Verification { Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException; /** - * Creates a new and reusable instance of the JWTVerifier with the configuration already provided. + * Require a specific Array Claim to contain at least the given items. * - * @return a new JWTVerifier instance. + * @param name the Claim's name. + * @param items the items the Claim must contain. + * @return this same Verification instance. + * @throws IllegalArgumentException if the name is null. */ + Verification withArrayClaim(String name, Long ... items) throws IllegalArgumentException; - /** * Skip the Issued At ("iat") date verification. By default, the verification is performed. */ Verification ignoreIssuedAt(); + /** + * Creates a new and reusable instance of the JWTVerifier with the configuration already provided. + * + * @return a new JWTVerifier instance. + */ JWTVerifier build(); }