KeyConfig kc = KeyConfig.keystoreBuilder() .keystore(Resource.create(keyPath)) .keystorePassphrase(cliArgs[2].toCharArray())
static Optional<PrivateKey> resolvePrivateKey(Config config) { KeyConfig.KeystoreBuilder keystoreBuilder = KeyConfig.keystoreBuilder().config(config);
/** * Updated this builder instance from configuration. * Keys configured will override existing fields in this builder, others will be left intact. * If certification path is already defined, configuration based cert-path will be added. * * @param config configuration to update this builder from * @return updated builder instance */ public Builder config(Config config) { updateWith(pemBuilder().config(config)); updateWith(keystoreBuilder().config(config)); return this; } }
KeyConfig kc = KeyConfig.keystoreBuilder() .keystore(Resource.create(keyPath)) .keystorePassphrase(cliArgs[2].toCharArray())
static Optional<PrivateKey> resolvePrivateKey(Config config) { KeyConfig.KeystoreBuilder keystoreBuilder = KeyConfig.keystoreBuilder().config(config);
/** * Updated this builder instance from configuration. * Keys configured will override existing fields in this builder, others will be left intact. * If certification path is already defined, configuration based cert-path will be added. * * @param config configuration to update this builder from * @return updated builder instance */ public Builder config(Config config) { updateWith(pemBuilder().config(config)); updateWith(keystoreBuilder().config(config)); return this; } }