protected void ThrowIfContextInvalid() { if (!IsValid) { throw X509Helper.GetInvalidContextException(); } }