public static List <Claim> AddKey(this List <Claim> claims, InterlockKey key) { if (claims != null && key != null) { claims.Add(new Claim(_publicKeyClaimType, key.PublicKey.TextualRepresentation)); claims.Add(new Claim(_senderIdClaimType, key.Id.TextualRepresentation)); claims.Add(new Claim(_senderNameClaimType, key.Name)); } return(claims); }
public bool Equals(InterlockKey other) => other != null && Id == other.Id;