From 0fd3622703f251886042853ec35e43aeea6a0159 Mon Sep 17 00:00:00 2001 From: Johannes Wengert Date: Thu, 16 Aug 2018 09:42:53 +0200 Subject: [PATCH] Fix JwtBuilder javadoc - resolves #386 --- api/src/main/java/io/jsonwebtoken/JwtBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/io/jsonwebtoken/JwtBuilder.java b/api/src/main/java/io/jsonwebtoken/JwtBuilder.java index 4724674e..863d6361 100644 --- a/api/src/main/java/io/jsonwebtoken/JwtBuilder.java +++ b/api/src/main/java/io/jsonwebtoken/JwtBuilder.java @@ -188,7 +188,7 @@ public interface JwtBuilder extends ClaimsMutator { * *

instead of this:

*
-     * Claims claims = Jwts.claims().setSubject("You");
+     * Claims claims = Jwts.claims().setAudience("You");
      * String jwt = Jwts.builder().setClaims(claims).compact();
      * 
*

if desired.

@@ -306,7 +306,7 @@ public interface JwtBuilder extends ClaimsMutator { * *

instead of this:

*
-     * Claims claims = Jwts.claims().setIssuedAt(UUID.randomUUID().toString());
+     * Claims claims = Jwts.claims().setId(UUID.randomUUID().toString());
      * String jwt = Jwts.builder().setClaims(claims).compact();
      * 
*

if desired.