net.loginbuddy.common/src/main/java/net/loginbuddy/common/util/Jwt.java
/**
     * Generate a JWT based on a private key.
     *
     * @return JWT compact URL-safe serialization
     * @see <a href="https://bitbucket.org/b_c/jose4j/wiki/JWT%20Examples#markdown-header-producing-and-consuming-a-signed-jwt"></a>
     */
Generate a JWT based on a private key.
@return JWT compact URL-safe serialization
@see 
Generate a JWT based on a private key . @return JWT compact URL - safe serialization @see
public JsonWebSignature createSignedJwtRs256(String issuer, String audience, int lifetimeInMinutes, String subject, String nonce, boolean includePublicKey) throws Exception {
        Map<String, String> claims = new HashMap<>();
        claims.put("nonce", nonce);
        return createSignedJwtRs256(issuer, audience, lifetimeInMinutes, subject, includePublicKey, claims);
    }
public JsonWebSignature createSignedJwtRs256 ( String issuer , String audience , int lifetimeInMinutes , String subject , String nonce , boolean includePublicKey ) throws Exception { Map < String , String > claims = new HashMap < > ( ) ; claims . put ( "nonce" , nonce ) ; return createSignedJwtRs256 ( issuer , audience , lifetimeInMinutes , subject , includePublicKey , claims ) ; }
Generate a JWT based on a private key.
Generate a JWT based on a private key .