io.kroxylicious.proxy.config.tls.KeyStoreBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kroxylicious-integration-test-support Show documentation
Show all versions of kroxylicious-integration-test-support Show documentation
Support code to simplify writing integration tests for filters
package io.kroxylicious.proxy.config.tls;
import io.kroxylicious.proxy.config.model.VisitableBuilder;
public class KeyStoreBuilder extends KeyStoreFluent implements VisitableBuilder{
public KeyStoreBuilder() {
this.fluent = this;
}
public KeyStoreBuilder(KeyStoreFluent> fluent) {
this.fluent = fluent;
}
public KeyStoreBuilder(KeyStoreFluent> fluent,KeyStore instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public KeyStoreBuilder(KeyStore instance) {
this.fluent = this;
this.copyInstance(instance);
}
KeyStoreFluent> fluent;
public KeyStore build() {
KeyStore buildable = new KeyStore(fluent.getStoreFile(),fluent.buildStorePasswordProvider(),fluent.buildKeyPasswordProvider(),fluent.getStoreType());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy