Class SecureClientConfigurationImpl
java.lang.Object
fr.gouv.vitam.common.client.configuration.ClientConfigurationImpl
fr.gouv.vitam.common.client.configuration.SecureClientConfigurationImpl
- All Implemented Interfaces:
ClientConfiguration
,SecureClientConfiguration
public class SecureClientConfigurationImpl
extends ClientConfigurationImpl
implements SecureClientConfiguration
SecureClientConfiguration interface's implementation
-
Constructor Summary
ConstructorDescriptionEmpty SecureClientConfiguration constructor for YAMLFactorySecureClientConfigurationImpl
(String serverHost, int serverPort) ClientConfiguration constructorSecureClientConfigurationImpl
(String serverHost, int serverPort, boolean secure) ClientConfiguration constructorSecureClientConfigurationImpl
(String serverHost, int serverPort, boolean secure, SSLConfiguration sslConfiguration) ClientConfiguration constructorSecureClientConfigurationImpl
(String serverHost, int serverPort, boolean secure, SSLConfiguration sslConfiguration, boolean hostnameVerification) ClientConfiguration constructor -
Method Summary
Modifier and TypeMethodDescriptionMust return the value of a 'sslConfiguration' attributeboolean
Must return the value of a 'hostnameVerification' attributeboolean
isSecure()
Must return the value of a 'secure' attributesetHostnameVerification
(boolean hostnameVerification) setSecure
(boolean secure) setSslConfiguration
(SSLConfiguration sslConfiguration) Methods inherited from class fr.gouv.vitam.common.client.configuration.ClientConfigurationImpl
getServerHost, getServerPort, setServerHost, setServerPort
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface fr.gouv.vitam.common.client.configuration.ClientConfiguration
getServerHost, getServerPort, setServerHost, setServerPort
-
Constructor Details
-
SecureClientConfigurationImpl
public SecureClientConfigurationImpl()Empty SecureClientConfiguration constructor for YAMLFactory -
SecureClientConfigurationImpl
ClientConfiguration constructor- Parameters:
serverHost
- server IP addressserverPort
- server port- Throws:
IllegalArgumentException
- if serverHost is null or empty or serverPort <= 0
-
SecureClientConfigurationImpl
ClientConfiguration constructor- Parameters:
serverHost
- server IP addressserverPort
- server portsecure
- HTTP/HTTPS- Throws:
IllegalArgumentException
- if configuration param is null or empty or serverPort <= 0
-
SecureClientConfigurationImpl
public SecureClientConfigurationImpl(String serverHost, int serverPort, boolean secure, SSLConfiguration sslConfiguration) ClientConfiguration constructor- Parameters:
serverHost
- server IP addressserverPort
- server portsecure
- HTTP/HTTPSsslConfiguration
-- Throws:
IllegalArgumentException
- if configuration param is null or empty or serverPort <= 0
-
SecureClientConfigurationImpl
public SecureClientConfigurationImpl(String serverHost, int serverPort, boolean secure, SSLConfiguration sslConfiguration, boolean hostnameVerification) ClientConfiguration constructor- Parameters:
serverHost
- server IP addressserverPort
- server portsecure
-sslConfiguration
-hostnameVerification
-- Throws:
IllegalArgumentException
- if any configuration param is null or empty or serverPort <= 0
-
-
Method Details
-
isSecure
public boolean isSecure()Description copied from interface:ClientConfiguration
Must return the value of a 'secure' attribute- Specified by:
isSecure
in interfaceClientConfiguration
- Overrides:
isSecure
in classClientConfigurationImpl
- Returns:
- secure = false : HTTP, secure = true : HTTPS
-
isHostnameVerification
public boolean isHostnameVerification()Description copied from interface:SecureClientConfiguration
Must return the value of a 'hostnameVerification' attribute- Specified by:
isHostnameVerification
in interfaceSecureClientConfiguration
- Returns:
- HostnameVerification
-
getSslConfiguration
Description copied from interface:SecureClientConfiguration
Must return the value of a 'sslConfiguration' attribute- Specified by:
getSslConfiguration
in interfaceSecureClientConfiguration
- Returns:
- SSLConfiguration
-
setHostnameVerification
- Parameters:
hostnameVerification
- the hostnameVerification to set- Returns:
- this
-
setSecure
- Parameters:
secure
- the secure to set- Returns:
- this
-
setSslConfiguration
- Parameters:
sslConfiguration
- the sslConfiguration to set- Returns:
- this
-