All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kroxylicious.proxy.config.tls.KeyStoreBuilder Maven / Gradle / Ivy

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 - 2024 Weber Informatics LLC | Privacy Policy