java/src/main/java/com/genexus/security/web/jose/jwt/JWTSigner.java
/**
     * Generate the header part of a JSON web token.
     */
Generate the header part of a JSON web token.
Generate the header part of a JSON web token .
private String encodedHeader(final Algorithm algorithm) throws UnsupportedEncodingException {        
        final ObjectNode header = JsonNodeFactory.instance.objectNode();
        header.put("typ", "JWT");
        header.put("alg", algorithm.name());
        return base64UrlEncode(header.toString().getBytes("UTF-8"));
    }
private String encodedHeader ( final Algorithm algorithm ) throws UnsupportedEncodingException { final ObjectNode header = JsonNodeFactory . instance . objectNode ( ) ; header . put ( "typ" , "JWT" ) ; header . put ( "alg" , algorithm . name ( ) ) ; return base64UrlEncode ( header . toString ( ) . getBytes ( "UTF-8" ) ) ; }
Generate the header part of a JSON web token.
Generate the header part of a JSON web token .