public X509v2AttributeCertificateBuilder(AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date notBefore, Date notAfter) { acInfoGen = new V2AttributeCertificateInfoGenerator(); extGenerator = new ExtensionsGenerator(); acInfoGen.setHolder(holder.holder); acInfoGen.setIssuer(AttCertIssuer.getInstance(issuer.form)); acInfoGen.setSerialNumber(new ASN1Integer(serialNumber)); acInfoGen.setStartDate(new ASN1GeneralizedTime(notBefore)); acInfoGen.setEndDate(new ASN1GeneralizedTime(notAfter)); }
/** * Base constructor. * * @param holder holder certificate details * @param issuer issuer of this attribute certificate. * @param serialNumber serial number of this attribute certificate. * @param notBefore the date before which the certificate is not valid. * @param notAfter the date after which the certificate is not valid. */ public X509v2AttributeCertificateBuilder(AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date notBefore, Date notAfter) { acInfoGen = new V2AttributeCertificateInfoGenerator(); extGenerator = new ExtensionsGenerator(); acInfoGen.setHolder(holder.holder); acInfoGen.setIssuer(AttCertIssuer.getInstance(issuer.form)); acInfoGen.setSerialNumber(new ASN1Integer(serialNumber)); acInfoGen.setStartDate(new ASN1GeneralizedTime(notBefore)); acInfoGen.setEndDate(new ASN1GeneralizedTime(notAfter)); }
/** * Base constructor with locale for interpreting dates. You may need to use this constructor if the default locale * doesn't use a Gregorian calender so that the GeneralizedTime produced is compatible with other ASN.1 implementations. * * @param holder holder certificate details * @param issuer issuer of this attribute certificate. * @param serialNumber serial number of this attribute certificate. * @param notBefore the date before which the certificate is not valid. * @param notAfter the date after which the certificate is not valid. * @param dateLocale locale to be used for date interpretation. */ public X509v2AttributeCertificateBuilder(AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date notBefore, Date notAfter, Locale dateLocale) { acInfoGen = new V2AttributeCertificateInfoGenerator(); extGenerator = new ExtensionsGenerator(); acInfoGen.setHolder(holder.holder); acInfoGen.setIssuer(AttCertIssuer.getInstance(issuer.form)); acInfoGen.setSerialNumber(new ASN1Integer(serialNumber)); acInfoGen.setStartDate(new ASN1GeneralizedTime(notBefore, dateLocale)); acInfoGen.setEndDate(new ASN1GeneralizedTime(notAfter, dateLocale)); }
/** * reset the generator */ public void reset() { acInfoGen = new V2AttributeCertificateInfoGenerator(); extensions = null; extOrdering = null; }
public X509V2AttributeCertificateGenerator() { acInfoGen = new V2AttributeCertificateInfoGenerator(); extGenerator = new X509ExtensionsGenerator(); }
/** * reset the generator */ public void reset() { acInfoGen = new V2AttributeCertificateInfoGenerator(); extGenerator.reset(); }
public X509V2AttributeCertificateGenerator() { acInfoGen = new V2AttributeCertificateInfoGenerator(); }