docs: added javadoc

This commit is contained in:
zihluwang
2025-04-18 19:36:54 +08:00
parent b205698eb1
commit e216ca8757
@@ -367,6 +367,11 @@ public class TokenPayload {
return _payload;
}
/**
* Check the given claim name, make sure the name will not be one of the registered claim name.
*
* @param name a claim name
*/
private void checkClaimName(String name) {
if (RegisteredClaims.VALUES.contains(name)) {
throw new IllegalStateException("Please set registered claims with pre-defined methods");