public CrlInfo(String conf) { ConfPairs pairs = new ConfPairs(conf); String str = getNotBlankValue(pairs, CRL_NUMBER); this.crlNumber = new BigInteger(str, 16); str = pairs.value(BASE_CRL_NUMBER); if (StringUtil.isNotBlank(str)) { this.baseCrlNumber = new BigInteger(str, 16); } str = getNotBlankValue(pairs, THIS_UPDATE); this.thisUpdate = DateUtil.parseUtcTimeyyyyMMddhhmmss(str); str = getNotBlankValue(pairs, NEXT_UPDATE); this.nextUpdate = DateUtil.parseUtcTimeyyyyMMddhhmmss(str); str = getNotBlankValue(pairs, CRL_ID); this.crlId = CrlID.getInstance(Base64.decodeFast(str)); str = getNotBlankValue(pairs, USE_CRL_UPDATES); this.useCrlUpdates = Boolean.parseBoolean(str); }
public CrlInfo(BigInteger crlNumber, BigInteger baseCrlNumber, boolean useCrlUpdate, Date thisUpdate, Date nextUpdate, CrlID crlId) { this.crlNumber = ParamUtil.requireNonNull("crlNumber", crlNumber); this.baseCrlNumber = baseCrlNumber; this.useCrlUpdates = useCrlUpdate; this.thisUpdate = ParamUtil.requireNonNull("thisUpdate", thisUpdate); this.nextUpdate = ParamUtil.requireNonNull("nextUpdate", nextUpdate); this.crlId = ParamUtil.requireNonNull("crlId", crlId); }
public CrlID crlId() { return crlId; }
public void setCrlId(CrlID crlId) { this.crlId = crlId; }