List of usage examples for org.bouncycastle.asn1.x509 AttCertValidityPeriod AttCertValidityPeriod
public AttCertValidityPeriod(ASN1GeneralizedTime notBeforeTime, ASN1GeneralizedTime notAfterTime)
From source file:nl.uva.vlet.grid.voms.VOMSAttributeCertificate.java
License:Apache License
public void setTimes(Date from, Date to) throws Exception { try {/*from w w w .j a v a 2 s. com*/ this.attrCertValidityPeriod = new AttCertValidityPeriod(new DERGeneralizedTime(from), new DERGeneralizedTime(to)); } catch (Exception e) { throw e; } }