Class SSLConfiguration
java.lang.Object
fr.gouv.vitam.common.external.client.configuration.SSLConfiguration
SSL Configuration
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty SSLConfiguration constructor for YAMLFactorySSLConfiguration(List<SSLKey> keystore, List<SSLKey> truststore) SSLConfiguration Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory>getRegistry(SSLContext sslContext) setKeystore(List<SSLKey> keystore) voidsetProtocol(String protocol) setTruststore(List<SSLKey> truststore)
-
Constructor Details
-
SSLConfiguration
public SSLConfiguration()Empty SSLConfiguration constructor for YAMLFactory -
SSLConfiguration
SSLConfiguration Constructor- Parameters:
keystore-truststore-- Throws:
IllegalArgumentException- if keystore/truststore is null or empty
-
-
Method Details
-
getRegistry
public org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> getRegistry(SSLContext sslContext) throws FileNotFoundException - Parameters:
sslContext- using a given SSLContext- Returns:
- the associate Registry for Apache Ssl configuration
- Throws:
FileNotFoundException
-
createSSLContext
- Returns:
- SSL Context
- Throws:
VitamException
-
getTruststore
- Returns:
- the truststore
-
getKeystore
- Returns:
- the keystore
-
setTruststore
- Parameters:
truststore- the truststore to set- Returns:
- this
-
setKeystore
- Parameters:
keystore- the keystore to set- Returns:
- this
-
getProtocol
-
setProtocol
-