public class CapsConfiguration extends Object implements ICapsConfiguration
| Constructor and Description |
|---|
CapsConfiguration()
Constructor for the reference implementation of the configuration object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getConnectionTimeout()
Get the connection timeout set for the sockets.
|
int |
getProxyListenerPort()
Get the current setting of the proxy listener port.
|
SSLContext |
getProxySslContext()
Used by CAPS to retrieve the SSLContext for the client connection (proxy => client).
|
Proxy |
getTargetProxy()
Get the proxy which is required for the connection to the target server.
|
SSLContext |
getTargetSslContext()
Used by CAPS to retrieve the SSLContext for the target connection (proxy => target)
|
int |
getThreadPoolSize()
Get the desired thread pool size for the ConnectionHandler threads.
|
CapsConfiguration |
setConnectionTimeout(long connectionTimeout)
Set the connection timeout used in the sockets.
|
CapsConfiguration |
setProxyKeyStorePassword(String proxyKeyStorePassword)
Password needed to unlock the proxy KeyStore
|
CapsConfiguration |
setProxyKeyStorePath(String proxyKeyStorePath)
Set the server certificate which the proxy uses for the handshake with the source browser.
|
CapsConfiguration |
setProxyKeyStoreType(String proxyKeyStoreType)
The type of the proxy KeyStore.
|
CapsConfiguration |
setProxyListenerPort(int proxyListenerPort)
Set the proxy listener port to be used.
|
CapsConfiguration |
setProxySslContext(SSLContext proxySslContext)
Set the proxy SSLContext directly, no need to set proxy KeyStore after this.
|
CapsConfiguration |
setTargetKeyStorePassword(String targetKeyStorePassword)
Password needed to unlock the KeyStore
|
CapsConfiguration |
setTargetKeyStorePath(String targetKeyStorePath)
Set the path to the desired KeyStore file.
|
CapsConfiguration |
setTargetKeyStoreType(String targetKeyStoreType)
The type of the target KeyStore.
|
CapsConfiguration |
setTargetProxy(Proxy targetProxy)
Set the proxy which is required for the connection to the target server.
|
CapsConfiguration |
setTargetSslContext(SSLContext targetSslContext)
Set the target SSLContext directly, no need to set target TrustStore or KeyStore after this.
|
CapsConfiguration |
setTargetTrustStorePassword(String targetTrustStorePassword)
Password needed to unlock the TrustStore.
|
CapsConfiguration |
setTargetTrustStorePath(String targetTrustStorePath)
Set the path to the desired TrustStore file.
|
CapsConfiguration |
setTargetTrustStoreType(String targetTrustStoreType)
The type of the target TrustStore.
|
void |
setThreadPoolSize(int threadPoolSize)
Set the thread pool size to limit how many concurrent open connections can be handled, remaining will be queued.
|
public CapsConfiguration()
public SSLContext getTargetSslContext() throws NoSuchAlgorithmException, CertificateException, KeyStoreException, IOException, UnrecoverableKeyException, ConfigurationException, KeyManagementException
getTargetSslContext in interface ICapsConfigurationNoSuchAlgorithmExceptionCertificateExceptionKeyStoreExceptionIOExceptionUnrecoverableKeyExceptionConfigurationExceptionKeyManagementExceptionpublic CapsConfiguration setTargetSslContext(SSLContext targetSslContext)
targetSslContext - public CapsConfiguration setTargetTrustStorePath(String targetTrustStorePath)
targetTrustStorePath - public CapsConfiguration setTargetTrustStorePassword(String targetTrustStorePassword)
targetTrustStorePassword - public CapsConfiguration setTargetTrustStoreType(String targetTrustStoreType)
targetTrustStoreType - public CapsConfiguration setTargetKeyStorePath(String targetKeyStorePath)
targetKeyStorePath - public CapsConfiguration setTargetKeyStorePassword(String targetKeyStorePassword)
targetKeyStorePassword - public CapsConfiguration setTargetKeyStoreType(String targetKeyStoreType)
targetKeyStoreType - public Proxy getTargetProxy()
getTargetProxy in interface ICapsConfigurationpublic CapsConfiguration setTargetProxy(Proxy targetProxy)
targetProxy - public CapsConfiguration setProxyKeyStorePath(String proxyKeyStorePath)
proxyKeyStorePath - public CapsConfiguration setProxyKeyStorePassword(String proxyKeyStorePassword)
proxyKeyStorePassword - public CapsConfiguration setProxyKeyStoreType(String proxyKeyStoreType)
proxyKeyStoreType - public SSLContext getProxySslContext() throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, IOException, KeyStoreException, ConfigurationException, KeyManagementException
getProxySslContext in interface ICapsConfigurationCertificateExceptionUnrecoverableKeyExceptionNoSuchAlgorithmExceptionIOExceptionKeyStoreExceptionConfigurationExceptionKeyManagementExceptionpublic CapsConfiguration setProxySslContext(SSLContext proxySslContext)
proxySslContext - public int getProxyListenerPort()
getProxyListenerPort in interface ICapsConfigurationpublic CapsConfiguration setProxyListenerPort(int proxyListenerPort)
proxyListenerPort - public int getThreadPoolSize()
ICapsConfigurationgetThreadPoolSize in interface ICapsConfigurationpublic void setThreadPoolSize(int threadPoolSize)
threadPoolSize - public long getConnectionTimeout()
getConnectionTimeout in interface ICapsConfigurationpublic CapsConfiguration setConnectionTimeout(long connectionTimeout)
connectionTimeout - Copyright © 2015. All rights reserved.