public JsonWebKeySignBuilder SetAlg(HMAC hmac, string algName) { _jsonWebKey.Alg = algName; _jsonWebKey.Kty = KeyTypes.OCT; foreach (var kvp in hmac.ExportKey()) { _jsonWebKey.Content.Add(kvp.Key, kvp.Value); } return(this); }