java/src/main/java/com/genexus/security/web/jose/jwt/JWTSigner.java
/**
     * Generate the JSON web token payload string from the claims.
     *
     * @param options
     */
Generate the JSON web token payload string from the claims.
@param options
Generate the JSON web token payload string from the claims . @param options
private String encodedPayload(final Map<String, Object> _claims, final Options options) throws IOException {
        final Map<String, Object> claims = new HashMap<String, Object>(_claims);
        enforceStringOrURI(claims, "iss");
        enforceStringOrURI(claims, "sub");
        enforceStringOrURICollection(claims, "aud");
        enforceIntDate(claims, "exp");
        enforceIntDate(claims, "nbf");
        enforceIntDate(claims, "iat");
        enforceString(claims, "jti");
        if (options != null) {
            processPayloadOptions(claims, options);
        }
        final String payload = new ObjectMapper().writeValueAsString(claims);
        return base64UrlEncode(payload.getBytes("UTF-8"));
    }
private String encodedPayload ( final Map < String , Object > _claims , final Options options ) throws IOException { final Map < String , Object > claims = new HashMap < String , Object > ( _claims ) ; enforceStringOrURI ( claims , "iss" ) ; enforceStringOrURI ( claims , "sub" ) ; enforceStringOrURICollection ( claims , "aud" ) ; enforceIntDate ( claims , "exp" ) ; enforceIntDate ( claims , "nbf" ) ; enforceIntDate ( claims , "iat" ) ; enforceString ( claims , "jti" ) ; if ( options != null ) { processPayloadOptions ( claims , options ) ; } final String payload = new ObjectMapper ( ) . writeValueAsString ( claims ) ; return base64UrlEncode ( payload . getBytes ( "UTF-8" ) ) ; }
Generate the JSON web token payload string from the claims.
Generate the JSON web token payload string from the claims .