Examples of ASN1GeneralizedTime


Examples of codec.asn1.ASN1GeneralizedTime

  if (cDate == null) {
      throw (new Exception("Date was null, set Date to a proper value!"));
  }

  this.setOID(new ASN1ObjectIdentifier(EXTENSION_OID));
  creationDate = new ASN1GeneralizedTime(cDate);
  this.criticality = crit;
  this.setCritical(this.criticality);
  this.setValue(creationDate);
    }
View Full Code Here

Examples of codec.asn1.ASN1GeneralizedTime

  crlEntry_.add(userCertificate_);

  revocationDate_ = new ASN1Choice();
  revocationDate_.addType(new ASN1UTCTime());
  revocationDate_.addType(new ASN1GeneralizedTime());

  crlEntry_.add(revocationDate_);

  crlEntryExtensions_ = new ASN1SequenceOf(X509Extension.class);
  crlEntryExtensions_.setOptional(true);
View Full Code Here

Examples of codec.asn1.ASN1GeneralizedTime

    private ASN1GeneralizedTime time_;

    public ArchiveCutoffExtension() throws ASN1Exception,
      CertificateEncodingException {
  this(new ASN1GeneralizedTime(System.currentTimeMillis()));
    }
View Full Code Here

Examples of codec.asn1.ASN1GeneralizedTime

  add(issuer_);

  ASN1Sequence validity = new ASN1Sequence();
  notBefore_ = new ASN1Choice();
  notBefore_.addType(new ASN1UTCTime());
  notBefore_.addType(new ASN1GeneralizedTime());
  validity.add(notBefore_);
  notAfter_ = new ASN1Choice();
  notAfter_.addType(new ASN1UTCTime());
  notAfter_.addType(new ASN1GeneralizedTime());
  validity.add(notAfter_);
  add(validity);

  subject_ = new codec.x501.Name();
  add(subject_);
View Full Code Here

Examples of codec.asn1.ASN1GeneralizedTime

  issuer = new codec.x501.Name();
  TBSCertList.add(issuer);

  thisUpdate = new ASN1Choice();
  thisUpdate.addType(new ASN1UTCTime());
  thisUpdate.addType(new ASN1GeneralizedTime());
  TBSCertList.add(thisUpdate);

  nextUpdate = new ASN1Choice();
  nextUpdate.setOptional(true);
  nextUpdate.addType(new ASN1UTCTime());
  nextUpdate.addType(new ASN1GeneralizedTime());

  TBSCertList.add(nextUpdate);

  revokedCertificates = new ASN1SequenceOf(CRLEntry.class);
  revokedCertificates.setOptional(true);
View Full Code Here

Examples of codec.asn1.ASN1GeneralizedTime

  issuer = new codec.x501.Name();
  TBSCertList.add(issuer);

  thisUpdate = new ASN1Choice();
  thisUpdate.addType(new ASN1UTCTime());
  thisUpdate.addType(new ASN1GeneralizedTime());
  TBSCertList.add(thisUpdate);

  /*
   * nextUpdate = new ASN1Choice(); nextUpdate.setOptional(true);
   * nextUpdate.addType(new ASN1UTCTime()); nextUpdate.addType(new
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1GeneralizedTime

    // constructors:

    public DVCSTime(Date time)
    {
        this(new ASN1GeneralizedTime(time));
    }
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1GeneralizedTime

                RevokedStatus rs = (RevokedStatus)certStatus;
               
                if (rs.hasRevocationReason())
                {
                    this.certStatus = new CertStatus(
                                            new RevokedInfo(new ASN1GeneralizedTime(rs.getRevocationTime()), CRLReason.lookup(rs.getRevocationReason())));
                }
                else
                {
                    this.certStatus = new CertStatus(
                                            new RevokedInfo(new ASN1GeneralizedTime(rs.getRevocationTime()), null));
                }
            }

            this.thisUpdate = new DERGeneralizedTime(thisUpdate);
           
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1GeneralizedTime

   
    public RevokedStatus(
        Date        revocationDate,
        int         reason)
    {
        this.info = new RevokedInfo(new ASN1GeneralizedTime(revocationDate), CRLReason.lookup(reason));
    }
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1GeneralizedTime

     * Reason being as indicated by CRLReason, i.e. CRLReason.keyCompromise
     * or 0 if CRLReason is not to be used
     **/
    public void addCRLEntry(BigInteger userCertificate, Date revocationDate, int reason, Date invalidityDate)
    {
        tbsGen.addCRLEntry(new ASN1Integer(userCertificate), new Time(revocationDate), reason, new ASN1GeneralizedTime(invalidityDate));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.