public String generate(final Map<String, Object> claims) {
        // claims builder
        val builder = new JWTClaimsSet.Builder();

        // add claims
        for (val entry : claims.entrySet()) {
            builder.claim(entry.getKey(), entry.getValue());
        }
        if (this.expirationTime != null) {
            builder.expirationTime(this.expirationTime);
        }
        return internalGenerate(builder.build());
    }
Generate a JWT from a map of claims.

@param claims the map of claims
@return the created JWT
pac4j-jwt/src/main/java/org/pac4j/jwt/profile/JwtGenerator.java