Skip to content

Commit e216ca8

Browse files
author
zihluwang
committed
docs: added javadoc
1 parent b205698 commit e216ca8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

simple-jwt/src/main/java/com/onixbyte/jwt/TokenPayload.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,11 @@ public Map<String, Object> getPayload() {
367367
return _payload;
368368
}
369369

370+
/**
371+
* Check the given claim name, make sure the name will not be one of the registered claim name.
372+
*
373+
* @param name a claim name
374+
*/
370375
private void checkClaimName(String name) {
371376
if (RegisteredClaims.VALUES.contains(name)) {
372377
throw new IllegalStateException("Please set registered claims with pre-defined methods");

0 commit comments

Comments
 (0)