Class SSLConfiguration
- java.lang.Object
-
- fr.gouv.vitam.common.external.client.configuration.SSLConfiguration
-
public class SSLConfiguration extends java.lang.Object
SSL 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.SSLContext
createSSLContext()
java.util.List<SSLKey>
getKeystore()
java.lang.String
getProtocol()
org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory>
getRegistry(javax.net.ssl.SSLContext sslContext)
java.util.List<SSLKey>
getTruststore()
SSLConfiguration
setKeystore(java.util.List<SSLKey> keystore)
void
setProtocol(java.lang.String protocol)
SSLConfiguration
setTruststore(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)
-
-