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