public String generate(final UserProfile profile) {
        verifyProfile(profile);

        return internalGenerate(buildJwtClaimsSet(profile));
    }
Generate a JWT from a user profile.

@param profile the given user profile
@return the created JWT
pac4j-jwt/src/main/java/org/pac4j/jwt/profile/JwtGenerator.java