static FileKeyStoreLoader.Builder<? extends FileKeyStoreLoader>
    getBuilderForKeyStoreFileType(KeyStoreFileType type) {
    switch (Objects.requireNonNull(type)) {
      case JKS:
        return new JKSFileLoader.Builder();
      case PEM:
        return new PEMFileLoader.Builder();
      case PKCS12:
        return new PKCS12FileLoader.Builder();
      case BCFKS:
        return new BCFKSFileLoader.Builder();
      default:
        throw new AssertionError("Unexpected StoreFileType: " + type.name());
    }
  }
Returns a {@link FileKeyStoreLoader.Builder} that can build a loader which loads keys and certs
from files of the given {@link KeyStoreFileType}.
@param type the file type to load keys/certs from.
@return a new Builder.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/tls/FileKeyStoreLoaderBuilderProvider.java