public CertBag(java.security.cert.X509Certificate cert)
throws java.security.cert.CertificateEncodingException {
super(2);
certId_ = new ASN1ObjectIdentifier("1.2.840.113549.1.9.22.1");
add(certId_);
x509Cert_ = new ASN1OctetString(cert.getEncoded());
certValue_ = new ASN1TaggedType(0, x509Cert_, true);
add(certValue_);
}