JWTBuilder.addClaim

Add a new claim to the JWT. The claim is added to the payload of the JWT. The payload is in JSON format. A claim name cannot be used more than once. If the name is repeated then the new value will be used.

returns JWTBuilder

Parameters

java.lang.String  name,  java.lang.Object  value,