public class SSLConfiguration extends Object
| Constructor and Description |
|---|
SSLConfiguration()
Empty SSLConfiguration constructor for YAMLFactory
|
SSLConfiguration(List<SSLKey> keystore,
List<SSLKey> truststore)
SSLConfiguration Constructor
|
| Modifier and Type | Method and Description |
|---|---|
SSLContext |
createSSLContext() |
HostnameVerifier |
getAllowAllHostnameVerifier() |
List<SSLKey> |
getKeystore() |
org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> |
getRegistry(SSLContext sslContext) |
List<SSLKey> |
getTruststore() |
SSLConfiguration |
setKeystore(List<SSLKey> keystore) |
SSLConfiguration |
setTruststore(List<SSLKey> truststore) |
public SSLConfiguration()
public SSLConfiguration(List<SSLKey> keystore, List<SSLKey> truststore)
keystore - truststore - IllegalArgumentException - if keystore/truststore is null or emptypublic org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> getRegistry(SSLContext sslContext) throws FileNotFoundException
sslContext - using a given SSLContextFileNotFoundExceptionpublic SSLContext createSSLContext() throws VitamException
VitamExceptionpublic SSLConfiguration setTruststore(List<SSLKey> truststore)
truststore - the truststore to setpublic SSLConfiguration setKeystore(List<SSLKey> keystore)
keystore - the keystore to setpublic HostnameVerifier getAllowAllHostnameVerifier()
Copyright © 2018 Vitam. All rights reserved.