.updateWith(pemBuilder) .updateWith(keystoreBuilder) .build() .privateKey();
.updateWith(pemBuilder) .updateWith(keystoreBuilder) .build() .privateKey();
/** * Load key config from config. * * @param config config instance located at keys configuration (expects "keystore-path" child) * @return KeyConfig loaded from config * @throws PkiException when keys or certificates fail to load from keystore or when misconfigured */ public static KeyConfig create(Config config) throws PkiException { try { return fullBuilder().config(config).build(); } catch (ResourceException e) { throw new PkiException("Failed to load from config", e); } }
/** * Create an instance of {@link KeyConfig} based on this builder. * * @return new key config based on a keystore */ @Override public KeyConfig build() { return toFullBuilder().build(); }
/** * Build {@link KeyConfig} based on information from PEM files only. * * @return new instance configured from this builder */ @Override public KeyConfig build() { return toFullBuilder().build(); }
/** * Load key config from config. * * @param config config instance located at keys configuration (expects "keystore-path" child) * @return KeyConfig loaded from config * @throws PkiException when keys or certificates fail to load from keystore or when misconfigured */ public static KeyConfig create(Config config) throws PkiException { try { return fullBuilder().config(config).build(); } catch (ResourceException e) { throw new PkiException("Failed to load from config", e); } }
/** * Create an instance of {@link KeyConfig} based on this builder. * * @return new key config based on a keystore */ @Override public KeyConfig build() { return toFullBuilder().build(); }
/** * Build {@link KeyConfig} based on information from PEM files only. * * @return new instance configured from this builder */ @Override public KeyConfig build() { return toFullBuilder().build(); }