@Override public String toString() { return StringUtil.concatObjects("reason: ", reason, "\nrevocationTime: ", revocationTime, "\ninvalidityTime: ", invalidityTime); }
@Override public String toString() { return StringUtil.concatObjects("[", (min == null ? "" : min), ",", (max == null ? "" : max), "]"); }
@Override public String toString() { return StringUtil.concatObjects("(id=", id, ", name=", name, ")"); }
private String encoded(boolean withSerialNumber) { return StringUtil.concatObjects((withSerialNumber ? serialNumber.toString(16) + ";" : ""), base64HashValue, ";", (revoked ? "1" : "0"), ";", (revReason != null ? revReason : ""), ";", (revTime != null ? revTime : ""), ";", (revInvTime != null ? revInvTime : "")); }
private String encoded(boolean withSerialNumber) { return StringUtil.concatObjects((withSerialNumber ? serialNumber.toString(16) + ";" : ""), base64HashValue, ";", (revoked ? "1" : "0"), ";", (revReason != null ? revReason : ""), ";", (revTime != null ? revTime : ""), ";", (revInvTime != null ? revInvTime : "")); }
public String toString(boolean verbose) { return StringUtil.concatObjects(" include CA cert: ", includeCaCert, "\n include signer cert: ", includeSignerCert, "\n operation GetCRL: ", (supportGetCrl ? "supported" : "not supported"), (verbose ? "\n encoded: " : ""), (verbose ? getConf() : "")); }
public String toString(boolean verbose) { return StringUtil.concatObjects(" include CA cert: ", includeCaCert, "\n include signer cert: ", includeSignerCert, "\n operation GetCRL: ", (supportGetCrl ? "supported" : "not supported"), (verbose ? "\n encoded: " : ""), (verbose ? getConf() : "")); }
public String toString(boolean verbose) { StringBuilder sb = new StringBuilder(xipkiCertsetIncluded ? "included" : "not included"); if (xipkiCertsetIncluded) { sb.append("\t\tinclude cert: ").append(xipkiCertsetCertIncluded); } String xipkiCertSetStr = sb.toString(); sb = new StringBuilder("generate CRL "); if (intervalDayTime != null) { sb.append("at ").append(intervalDayTime); } else { sb.append("every ").append(intervalMinutes).append(" minutes"); } String intervalStr = sb.toString(); return StringUtil.concatObjects(" update mode: ", updateMode, "\n include expired certificates: ", includeExpiredCerts, "\n full CRL intervals: ", fullCrlIntervals, "\n delta CRL intervals: ", deltaCrlIntervals, "\n overlap: ", overlapMinutes, " minutes", "\n use extended nextUpdate: ", extendedNextUpdate, "\n only user certificates: ", onlyContainsUserCerts, "\n only CA certificates: ", onlyContainsCaCerts, "\n exclude reason: ", excludeReason, "\n invalidity date mode: ", invalidityDateMode, "\n interval: ", intervalStr, "\n XiPKI CertSet: ", xipkiCertSetStr, (verbose ? "\n encoded: " : ""), (verbose ? getConf() : "")); }
public String toString(boolean verbose) { StringBuilder sb = new StringBuilder(xipkiCertsetIncluded ? "included" : "not included"); if (xipkiCertsetIncluded) { sb.append("\t\tinclude cert: ").append(xipkiCertsetCertIncluded); } String xipkiCertSetStr = sb.toString(); sb = new StringBuilder("generate CRL "); if (intervalDayTime != null) { sb.append("at ").append(intervalDayTime); } else { sb.append("every ").append(intervalMinutes).append(" minutes"); } String intervalStr = sb.toString(); return StringUtil.concatObjects(" update mode: ", updateMode, "\n include expired certificates: ", includeExpiredCerts, "\n full CRL intervals: ", fullCrlIntervals, "\n delta CRL intervals: ", deltaCrlIntervals, "\n overlap: ", overlapMinutes, " minutes", "\n use extended nextUpdate: ", extendedNextUpdate, "\n only user certificates: ", onlyContainsUserCerts, "\n only CA certificates: ", onlyContainsCaCerts, "\n exclude reason: ", excludeReason, "\n invalidity date mode: ", invalidityDateMode, "\n interval: ", intervalStr, "\n XiPKI CertSet: ", xipkiCertSetStr, (verbose ? "\n encoded: " : ""), (verbose ? getConf() : "")); }
public String toString(boolean verbose) { return StringUtil.concatObjects( " confirm cert: ", confirmCert, "\n send CA cert: ", sendCaCert, "\n message time required: ", messageTimeRequired, "\n send responder cert: ", sendResponderCert, "\n message time bias: ", messageTimeBias, "\n confirm waiting time: ", confirmWaitTime, "s", "\n group enroll: ", groupEnroll, "\n AKI in revocation request required: ", rrAkiRequired, "\n signature algorithms: ", sigAlgoValidator.getAlgoNames(), "\n POPO algorithms: ", popoAlgoValidator.getAlgoNames(), (verbose ? "\n encoded: " : ""), (verbose ? conf : "")); }
final void addIdentityEntry(CertBasedIdentityEntry entry) { Args.notNull(entry, "entry"); for (CertBasedIdentityEntry existingEntry : entries) { if (existingEntry.getId() == entry.getId()) { throw new IllegalArgumentException(StringUtil.concatObjects(table, " with the same id ", entry.getId(), " already available")); } } entries.add(entry); }
public String toString(boolean verbose) { return StringUtil.concatObjects( " confirm cert: ", confirmCert, "\n send CA cert: ", sendCaCert, "\n message time required: ", messageTimeRequired, "\n send responder cert: ", sendResponderCert, "\n message time bias: ", messageTimeBias, "\n confirm waiting time: ", confirmWaitTime, "s", "\n hroup enroll: ", groupEnroll, "\n AKI in revocation request required: ", rrAkiRequired, "\n signature algorithms: ", sigAlgoValidator.getAlgoNames(), "\n POPO algorithms: ", popoAlgoValidator.getAlgoNames(), (verbose ? "\n encoded: " : ""), (verbose ? conf : "")); }
public boolean deleteFromTableWithLargerId(String table, String idColumn, long id, Logger log) { String sql = StringUtil.concatObjects("DELETE FROM ", table, " WHERE ", idColumn, ">", id); Statement stmt; try { stmt = createStatement(); } catch (DataAccessException ex) { log.error("could not create statement", ex); return false; } try { stmt.execute(sql); } catch (Throwable th) { String msg = String.format("could not delete columns from table %s with %s > %s", table, idColumn, id); LogUtil.error(log, th, msg); return false; } finally { releaseResources(stmt, null); } return true; } // method deleteFromTableWithLargerId
public boolean deleteFromTableWithLargerId(String table, String idColumn, long id, Logger log) { String sql = StringUtil.concatObjects("DELETE FROM ", table, " WHERE ", idColumn, ">", id); Statement stmt; try { stmt = createStatement(); } catch (DataAccessException ex) { log.error("could not create statement", ex); return false; } try { stmt.execute(sql); } catch (Throwable th) { String msg = String.format("could not delete columns from table %s with %s > %s", table, idColumn, id); LogUtil.error(log, th, msg); return false; } finally { releaseResources(stmt, null); } return true; } // method deleteFromTableWithLargerId
HashAlgo targetAlgo = detectOcspDbCerthashAlgo(targetDatasource); if (refAlgo != targetAlgo) { throw new IllegalArgumentException(StringUtil.concatObjects( "Could not compare OCSP datasources with different CERTHASH_ALGO: refDataSource (", refAlgo, ") and targetDataSource (", targetAlgo, ")"));
HashAlgo targetAlgo = detectOcspDbCerthashAlgo(targetDatasource); if (refAlgo != targetAlgo) { throw new IllegalArgumentException(StringUtil.concatObjects( "Could not compare OCSP datasources with different CERTHASH_ALGO: refDataSource (", refAlgo, ") and targetDataSource (", targetAlgo, ")"));
this.description = StringUtil.concatObjects("PKCS#11 IAIK", "\n\tPath: ", library, "\n\tCryptoki Version: ", info.getCryptokiVersion(), this.description = StringUtil.concatObjects("PKCS#11 IAIK", "\n\tPath", moduleConf.getNativeLibrary());
status = "unknown (RFC6960)"; } else { status = StringUtil.concatObjects("revoked, reason = ", CrlReason.forReasonCode(reason).getDescription(), ", revocationTime = ", revTime, (invTime == null ? "" : ", invalidityTime = " + invTime));
status = "unknown (RFC6960)"; } else { status = StringUtil.concatObjects("revoked, reason = ", CrlReason.forReasonCode(reason).getDescription(), ", revocationTime = ", revTime, (invTime == null ? "" : ", invalidityTime = " + invTime));