Exemple #1
0
 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));
 }
Exemple #2
0
 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));
 }