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 : "")); }
@Override public String toString() { StringBuilder sb = new StringBuilder(500); sb.append("name: ").append(dbEntry.name()).append('\n'); sb.append("confirmCert: ").append(getYesNo(confirmCert)).append('\n'); sb.append("sendCaCert: ").append(getYesNo(sendCaCert)).append("\n"); sb.append("sendResponderCert: ").append(getYesNo(sendResponderCert)).append("\n"); sb.append("messageTimeRequired: ").append(getYesNo(messageTimeRequired)).append("\n"); sb.append("groupEnroll: ").append(getYesNo(groupEnroll)).append("\n"); sb.append("messageTimeBias: ").append(messageTimeBias).append(" s").append('\n'); sb.append("confirmWaitTime: ").append(confirmWaitTime).append(" s").append('\n'); sb.append("protection algos: ") .append(StringUtil.collectionAsString(sigAlgoValidator.algoNames(), ALGO_DELIMITER)) .append('\n'); sb.append("popo algos: ") .append(StringUtil.collectionAsString(popoAlgoValidator.algoNames(), ALGO_DELIMITER)) .append('\n'); sb.append("conf: ").append(dbEntry.conf()); return sb.toString(); }
this.sigAlgoValidator = new CollectionAlgorithmValidator(sigAlgos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid sigAlgos", ex); pairs.putPair(KEY_PROTECTION_SIGALGO, algosAsString(this.sigAlgoValidator.getAlgoNames())); this.popoAlgoValidator = new CollectionAlgorithmValidator(popoAlgos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid popoAlgos", ex); pairs.putPair(KEY_POPO_SIGALGO, algosAsString(this.popoAlgoValidator.getAlgoNames()));
this.sigAlgoValidator = new CollectionAlgorithmValidator(sigAlgos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid sigAlgos", ex); StringUtil.collectionAsString(this.sigAlgoValidator.algoNames(), ALGO_DELIMITER)); this.popoAlgoValidator = new CollectionAlgorithmValidator(popoAlgos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid popoAlgos", ex); StringUtil.collectionAsString(this.popoAlgoValidator.algoNames(), ALGO_DELIMITER));
sigAlgoValidator = new CollectionAlgorithmValidator(algoNames); } catch (NoSuchAlgorithmException ex) { LogUtil.error(LOG, ex, "could not initialize CollectionAlgorithmValidator");
this.sigAlgoValidator = new CollectionAlgorithmValidator(sigAlgos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid sigAlgos", ex); pairs.putPair(KEY_PROTECTION_SIGALGO, algosAsString(this.sigAlgoValidator.getAlgoNames())); this.popoAlgoValidator = new CollectionAlgorithmValidator(popoAlgos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid popoAlgos", ex); pairs.putPair(KEY_POPO_SIGALGO, algosAsString(this.popoAlgoValidator.getAlgoNames()));
Set<String> algos = (str == null) ? null : StringUtil.splitAsSet(str, ALGO_DELIMITER); try { this.sigAlgoValidator = new CollectionAlgorithmValidator(algos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid " + KEY_PROTECTION_SIGALGO + ": " + str, ex); algos = this.sigAlgoValidator.algoNames(); pairs.putPair(KEY_PROTECTION_SIGALGO, StringUtil.collectionAsString(algos, ALGO_DELIMITER)); algos = (str == null) ? null : StringUtil.splitAsSet(str, ALGO_DELIMITER); try { this.popoAlgoValidator = new CollectionAlgorithmValidator(algos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid " + KEY_POPO_SIGALGO + ": " + str, ex); algos = this.popoAlgoValidator.algoNames(); pairs.putPair(KEY_POPO_SIGALGO, StringUtil.collectionAsString(algos, ALGO_DELIMITER));
this.sigAlgoValidator = new CollectionAlgorithmValidator(algos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid " + key + ": " + str, ex); algos = this.sigAlgoValidator.getAlgoNames(); pairs.putPair(key, algosAsString(algos)); this.popoAlgoValidator = new CollectionAlgorithmValidator(algos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid " + key + ": " + str, ex); algos = this.popoAlgoValidator.getAlgoNames(); pairs.putPair(key, algosAsString(algos));
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 : "")); }
this.sigAlgoValidator = new CollectionAlgorithmValidator(algos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid " + key + ": " + str, ex); algos = this.sigAlgoValidator.getAlgoNames(); pairs.putPair(key, algosAsString(algos)); this.popoAlgoValidator = new CollectionAlgorithmValidator(algos); } catch (NoSuchAlgorithmException ex) { throw new InvalidConfException("invalid " + key + ": " + str, ex); algos = this.popoAlgoValidator.getAlgoNames(); pairs.putPair(key, algosAsString(algos));