io.kroxylicious.proxy.config.tls.KeyPairBuilder 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 KeyPairBuilder extends KeyPairFluent implements VisitableBuilder{
public KeyPairBuilder() {
this.fluent = this;
}
public KeyPairBuilder(KeyPairFluent> fluent) {
this.fluent = fluent;
}
public KeyPairBuilder(KeyPairFluent> fluent,KeyPair instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public KeyPairBuilder(KeyPair instance) {
this.fluent = this;
this.copyInstance(instance);
}
KeyPairFluent> fluent;
public KeyPair build() {
KeyPair buildable = new KeyPair(fluent.getPrivateKeyFile(),fluent.getCertificateFile(),fluent.buildKeyPasswordProvider());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy