public static OptionalValidity getInstance(Object o) { if (o instanceof OptionalValidity) { return (OptionalValidity)o; } if (o != null) { return new OptionalValidity(ASN1Sequence.getInstance(o)); } return null; }
break; case 4: validity = OptionalValidity.getInstance(ASN1Sequence.getInstance(tObj, false)); break; case 5:
break; case 4: validity = OptionalValidity.getInstance(ASN1Sequence.getInstance(tObj, false)); break; case 5:
public static OptionalValidity getInstance(Object o) { if (o instanceof OptionalValidity) { return (OptionalValidity)o; } if (o != null) { return new OptionalValidity(ASN1Sequence.getInstance(o)); } return null; }
/** * Request a validity period for the certificate. Either, but not both, of the date parameters may be null. * * @param notBeforeDate not before date for certificate requested. * @param notAfterDate not after date for the certificate requested. * * @return the current builder. */ public CertificateRequestMessageBuilder setValidity(Date notBeforeDate, Date notAfterDate) { templateBuilder.setValidity(new OptionalValidity(createTime(notBeforeDate), createTime(notAfterDate))); return this; }
/** * Request a validity period for the certificate. Either, but not both, of the date parameters may be null. * * @param notBeforeDate not before date for certificate requested. * @param notAfterDate not after date for the certificate requested. * * @return the current builder. */ public CertificateRequestMessageBuilder setValidity(Date notBeforeDate, Date notAfterDate) { templateBuilder.setValidity(new OptionalValidity(createTime(notBeforeDate), createTime(notAfterDate))); return this; }