Class TrustStore.Builder
- java.lang.Object
-
- com.floragunn.searchguard.ssl.util.config.TrustStore.Builder
-
- Enclosing class:
- TrustStore
public static class TrustStore.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrustStorebuild()TrustStore.BuildercertPem(File file)TrustStore.BuildercertPem(InputStream inputStream)TrustStore.BuildercertPem(Path path)TrustStore.Builderjks(File file, String password)TrustStore.BuilderkeyStore(File file, String password)TrustStore.BuilderkeyStore(File file, String password, String type)TrustStore.Builderpkcs12(File file, String password)
-
-
-
Method Detail
-
certPem
public TrustStore.Builder certPem(File file) throws GenericSSLConfigException
- Throws:
GenericSSLConfigException
-
certPem
public TrustStore.Builder certPem(Path path) throws GenericSSLConfigException
- Throws:
GenericSSLConfigException
-
certPem
public TrustStore.Builder certPem(InputStream inputStream) throws CertificateException
- Throws:
CertificateException
-
jks
public TrustStore.Builder jks(File file, String password) throws GenericSSLConfigException
- Throws:
GenericSSLConfigException
-
pkcs12
public TrustStore.Builder pkcs12(File file, String password) throws GenericSSLConfigException
- Throws:
GenericSSLConfigException
-
keyStore
public TrustStore.Builder keyStore(File file, String password) throws GenericSSLConfigException
- Throws:
GenericSSLConfigException
-
keyStore
public TrustStore.Builder keyStore(File file, String password, String type) throws GenericSSLConfigException
- Throws:
GenericSSLConfigException
-
build
public TrustStore build() throws GenericSSLConfigException
- Throws:
GenericSSLConfigException
-
-