public static string Encode(object payload, object key, JwsAlgorithm algorithm, IDictionary <string, object> extraHeaders = null) { return(JWT.Encode(JWT.jsMapper.Serialize(payload), key, algorithm, extraHeaders)); }
public static string Encode(object payload, object key, JweAlgorithm alg, JweEncryption enc, JweCompression?compression = null, IDictionary <string, object> extraHeaders = null) { return(JWT.Encode(JWT.jsMapper.Serialize(payload), key, alg, enc, compression, extraHeaders)); }