Examples of ASN1Time


Examples of codec.asn1.ASN1Time

    /**
     * implemented abstract method from
     * {@link java.security.cert.X509CRLEntry java.security.cert.X509CRLEntry}
     */
    public Date getRevocationDate() {
  ASN1Time a1t = (ASN1Time) revocationDate_.getInnerType();
  return a1t.getDate();
    }
View Full Code Here

Examples of codec.asn1.ASN1Time

    /**
     * set the date of this revocation entry
     */
    public void setRevocationDate(Calendar cal) {

  ASN1Time inner = (ASN1Time) revocationDate_.getInnerType();

  if (inner == null) {
      inner = new ASN1UTCTime(cal);
      revocationDate_.setInnerType(inner);
  }

  inner.setDate(cal);
    }
View Full Code Here

Examples of codec.asn1.ASN1Time

     * @param nnaf
     *                "not after" date
     */
    public void setNotAfter(Calendar nnaf) {

  ASN1Time nai = (ASN1Time) notAfter_.getInnerType();

  if (nai == null) {
      nai = new ASN1UTCTime();
      notAfter_.setInnerType(nai);
  }

  nai.setDate(nnaf);
    }
View Full Code Here

Examples of codec.asn1.ASN1Time

     *
     * @param nnbf
     *                "not before" date
     */
    public void setNotBefore(Calendar nnbf) {
  ASN1Time nai = (ASN1Time) notBefore_.getInnerType();

  if (nai == null) {
      nai = new ASN1UTCTime();
      notBefore_.setInnerType(nai);
  }

  nai.setDate(nnbf);
    }
View Full Code Here

Examples of codec.asn1.ASN1Time

    public Date getNextUpdate() {

  if (nextUpdate.isOptional())
      return null;

  ASN1Time a1t = (ASN1Time) nextUpdate.getInnerType();

  return a1t.getDate();
    }
View Full Code Here

Examples of codec.asn1.ASN1Time

    /**
     * returns the issuing date of this crl update
     */
    public Date getThisUpdate() {
  ASN1Time a1t = (ASN1Time) thisUpdate.getInnerType();

  return a1t.getDate();
    }
View Full Code Here

Examples of codec.asn1.ASN1Time

   * ASN1GeneralizedTime());
   *
   * TBSCertList.add(nextUpdate);
   */

  ASN1Time akt_time = (ASN1Time) nextUpdate.getInnerType();
  if (akt_time == null) {
      akt_time = new ASN1UTCTime(time);
      nextUpdate.setInnerType(akt_time);
  }
  akt_time.setDate(time);
  nextUpdate.setOptional(false);
    }
View Full Code Here

Examples of codec.asn1.ASN1Time

    /**
     * sets the date of this update
     */
    public void setThisUpdate(Calendar time) {

  ASN1Time akt_time = (ASN1Time) thisUpdate.getInnerType();
  if (akt_time == null) {
      akt_time = new ASN1UTCTime(time);
      thisUpdate.setInnerType(akt_time);
  }

  akt_time.setDate(time);
    }
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.