Package com.floragunn.codova.config.net
Class TLSConfig.Builder
java.lang.Object
com.floragunn.codova.config.net.TLSConfig.Builder
- Enclosing class:
- TLSConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()clientCert(File certficatePem, File privateKeyPem, String privateKeyPassword) clientCertJks(File file, String password, String alias) enabledCiphers(String... enabledCiphers) enabledCiphers(List<String> enabledCiphers) enabledProtocols(String... enabledProtocols) enabledProtocols(List<String> enabledProtocols) trustAll(boolean trustAll) verifyHostnames(boolean verifyHostnames)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
trust
- Throws:
ConfigValidationException
-
clientCert
public TLSConfig.Builder clientCert(File certficatePem, File privateKeyPem, String privateKeyPassword) -
enabledProtocols
-
enabledProtocols
-
enabledCiphers
-
enabledCiphers
-
trustAll
-
verifyHostnames
-
trustJks
public TLSConfig.Builder trustJks(File file, String password) throws NoSuchAlgorithmException, CertificateException, IOException, KeyStoreException -
clientCertJks
public TLSConfig.Builder clientCertJks(File file, String password, String alias) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException -
build
- Throws:
ConfigValidationException
-