Class SSLConfiguration
- java.lang.Object
-
- fr.gouv.vitam.common.external.client.configuration.SSLConfiguration
-
public class SSLConfiguration extends java.lang.ObjectSSL Configuration
-
-
Constructor Summary
Constructors Constructor Description SSLConfiguration()Empty SSLConfiguration constructor for YAMLFactorySSLConfiguration(java.util.List<SSLKey> keystore, java.util.List<SSLKey> truststore)SSLConfiguration Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.net.ssl.SSLContextcreateSSLContext()java.util.List<SSLKey>getKeystore()java.lang.StringgetProtocol()org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory>getRegistry(javax.net.ssl.SSLContext sslContext)java.util.List<SSLKey>getTruststore()SSLConfigurationsetKeystore(java.util.List<SSLKey> keystore)voidsetProtocol(java.lang.String protocol)SSLConfigurationsetTruststore(java.util.List<SSLKey> truststore)
-
-
-
Method Detail
-
getRegistry
public org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> getRegistry(javax.net.ssl.SSLContext sslContext) throws java.io.FileNotFoundException- Parameters:
sslContext- using a given SSLContext- Returns:
- the associate Registry for Apache Ssl configuration
- Throws:
java.io.FileNotFoundException
-
createSSLContext
public javax.net.ssl.SSLContext createSSLContext() throws VitamException- Returns:
- SSL Context
- Throws:
VitamException
-
getTruststore
public java.util.List<SSLKey> getTruststore()
- Returns:
- the truststore
-
getKeystore
public java.util.List<SSLKey> getKeystore()
- Returns:
- the keystore
-
setTruststore
public SSLConfiguration setTruststore(java.util.List<SSLKey> truststore)
- Parameters:
truststore- the truststore to set- Returns:
- this
-
setKeystore
public SSLConfiguration setKeystore(java.util.List<SSLKey> keystore)
- Parameters:
keystore- the keystore to set- Returns:
- this
-
getProtocol
public java.lang.String getProtocol()
-
setProtocol
public void setProtocol(java.lang.String protocol)
-
-