/// <inheritsdoc /> public override bool Equals(Jwk?other) { if (ReferenceEquals(this, other)) { return(true); } if (!(other is PasswordBasedJwk key)) { return(false); } if (Kid.EncodedUtf8Bytes.Length != 0 && other.Kid.EncodedUtf8Bytes.Length != 0) { return(Kid.Equals(other.Kid)); } return(_inner.Equals(key._inner)); }