Package br.net.woodstock.rockframework.util

Examples of br.net.woodstock.rockframework.util.DateBuilder


      if (serialNumber == null) {
        serialNumber = BigInteger.valueOf(time);
      }

      if (notBefore == null) {
        DateBuilder dateBuilder = new DateBuilder(time);
        dateBuilder.removeDays(1);
        notBefore = dateBuilder.getDate();
      }

      if (notAfter == null) {
        DateBuilder dateBuilder = new DateBuilder(time);
        dateBuilder.addYears(1);
        notAfter = dateBuilder.getDate();
      }

      if (this.v3) {
        JcaX509v3CertificateBuilder builder = new JcaX509v3CertificateBuilder(this.toX500Name(issuer), serialNumber, notBefore, notAfter, this.toX500Name(subject), keyPair.getPublic());
View Full Code Here


    if (this.serialNumber == null) {
      this.serialNumber = BigInteger.valueOf(this.time);
    }

    if (this.notBefore == null) {
      DateBuilder dateBuilder = new DateBuilder(this.time);
      dateBuilder.removeDays(1);
      this.notBefore = dateBuilder.getDate();
    }

    if (this.notAfter == null) {
      DateBuilder dateBuilder = new DateBuilder(this.time);
      dateBuilder.addYears(1);
      this.notAfter = dateBuilder.getDate();
    }
  }
View Full Code Here

      if (serialNumber == null) {
        serialNumber = BigInteger.valueOf(time);
      }

      if (notBefore == null) {
        DateBuilder dateBuilder = new DateBuilder(time);
        dateBuilder.removeDays(1);
        notBefore = dateBuilder.getDate();
      }

      if (notAfter == null) {
        DateBuilder dateBuilder = new DateBuilder(time);
        dateBuilder.addYears(1);
        notAfter = dateBuilder.getDate();
      }

      if (this.v3) {
        JcaX509v3CertificateBuilder builder = null;
        if (this.issuerCertificate != null) {
View Full Code Here

    if (this.serialNumber == null) {
      this.serialNumber = BigInteger.valueOf(this.time);
    }

    if (this.notBefore == null) {
      DateBuilder dateBuilder = new DateBuilder(this.time);
      dateBuilder.removeDays(1);
      this.notBefore = dateBuilder.getDate();
    }

    if (this.notAfter == null) {
      DateBuilder dateBuilder = new DateBuilder(this.time);
      dateBuilder.addYears(1);
      this.notAfter = dateBuilder.getDate();
    }
  }
View Full Code Here

      if (serialNumber == null) {
        serialNumber = BigInteger.valueOf(time);
      }

      if (notBefore == null) {
        DateBuilder dateBuilder = new DateBuilder(time);
        dateBuilder.removeDays(1);
        notBefore = dateBuilder.getDate();
      }

      if (notAfter == null) {
        DateBuilder dateBuilder = new DateBuilder(time);
        dateBuilder.addYears(1);
        notAfter = dateBuilder.getDate();
      }

      if (this.v3) {
        JcaX509v3CertificateBuilder builder = null;
        if (this.issuerCertificate != null) {
View Full Code Here

    if (this.number == null) {
      this.number = BigInteger.ONE;
    }

    if (this.nextUpdate == null) {
      DateBuilder builder = new DateBuilder();
      builder.addDays(1);
      this.nextUpdate = builder.getDate();
    }
  }
View Full Code Here

    if (this.serialNumber == null) {
      this.serialNumber = BigInteger.valueOf(this.time);
    }

    if (this.notBefore == null) {
      DateBuilder dateBuilder = new DateBuilder(this.time);
      dateBuilder.removeDays(1);
      this.notBefore = dateBuilder.getDate();
    }

    if (this.notAfter == null) {
      DateBuilder dateBuilder = new DateBuilder(this.time);
      dateBuilder.addYears(1);
      this.notAfter = dateBuilder.getDate();
    }
  }
View Full Code Here

TOP

Related Classes of br.net.woodstock.rockframework.util.DateBuilder

Copyright © 2018 www.massapicom. 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.