internal X509V2AttributeCertificate( AttributeCertificate cert) { this.cert = cert; try { this.notAfter = cert.ACInfo.AttrCertValidityPeriod.NotAfterTime.ToDateTime(); this.notBefore = cert.ACInfo.AttrCertValidityPeriod.NotBeforeTime.ToDateTime(); } catch (Exception e) { throw new IOException("invalid data structure in certificate!", e); } }