public class ConnectionConfiguration extends Object
Constructor and Description |
---|
ConnectionConfiguration(ConnectionType type,
boolean enabled,
int maxThreadPoolSize,
int maxBufferSize,
Connection.ClientAuth clientAuth,
InetAddress bindAddress,
int port,
Connection.TLSPolicy tlsPolicy,
CertificateStoreConfiguration identityStoreConfiguration,
CertificateStoreConfiguration trustStoreConfiguration,
boolean acceptSelfSignedCertificates,
boolean verifyCertificateValidity,
Set<String> encryptionProtocols,
Set<String> encryptionCipherSuites,
Connection.CompressionPolicy compressionPolicy) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getBindAddress() |
Connection.ClientAuth |
getClientAuth() |
Connection.CompressionPolicy |
getCompressionPolicy() |
Set<String> |
getEncryptionCipherSuites()
A collection of cipher suite names that can be used for encryption of connections.
|
Set<String> |
getEncryptionProtocols()
A collection of protocol names that can be used for encryption of connections.
|
IdentityStore |
getIdentityStore() |
CertificateStoreConfiguration |
getIdentityStoreConfiguration() |
int |
getMaxBufferSize() |
int |
getMaxThreadPoolSize() |
int |
getPort() |
Connection.TLSPolicy |
getTlsPolicy() |
TrustStore |
getTrustStore() |
CertificateStoreConfiguration |
getTrustStoreConfiguration() |
ConnectionType |
getType() |
boolean |
isAcceptSelfSignedCertificates()
A boolean that indicates if self-signed peer certificates can be used to establish an encrypted connection.
|
boolean |
isEnabled() |
boolean |
isVerifyCertificateValidity()
A boolean that indicates if the current validity of certificates (based on their 'notBefore' and 'notAfter'
property values) is used when they are used to establish an encrypted connection..
|
public ConnectionConfiguration(ConnectionType type, boolean enabled, int maxThreadPoolSize, int maxBufferSize, Connection.ClientAuth clientAuth, InetAddress bindAddress, int port, Connection.TLSPolicy tlsPolicy, CertificateStoreConfiguration identityStoreConfiguration, CertificateStoreConfiguration trustStoreConfiguration, boolean acceptSelfSignedCertificates, boolean verifyCertificateValidity, Set<String> encryptionProtocols, Set<String> encryptionCipherSuites, Connection.CompressionPolicy compressionPolicy)
type
- enabled
- maxThreadPoolSize
- The maximum number of threads that are to be used to processing network activity. Must be equal to or larger than one.maxBufferSize
- The maximum amount of bytes of the read buffer that I/O processor allocates per each read, or a non-positive value to configure no maximum.clientAuth
- specification if peers should be authenticated ('mutual authentication') (cannot be null).bindAddress
- The network address on which connections are accepted, or null when any local address can be used.port
- The TCP port number on which connections are accepted (must be a valid TCP port number).tlsPolicy
- The TLS policy that is applied to connections (cannot be null).public Connection.TLSPolicy getTlsPolicy()
public Connection.CompressionPolicy getCompressionPolicy()
public ConnectionType getType()
public int getMaxThreadPoolSize()
public int getMaxBufferSize()
public Connection.ClientAuth getClientAuth()
public InetAddress getBindAddress()
public int getPort()
public CertificateStoreConfiguration getIdentityStoreConfiguration()
public CertificateStoreConfiguration getTrustStoreConfiguration()
public boolean isAcceptSelfSignedCertificates()
public boolean isVerifyCertificateValidity()
public Set<String> getEncryptionProtocols()
public Set<String> getEncryptionCipherSuites()
public IdentityStore getIdentityStore()
public TrustStore getTrustStore()
public boolean isEnabled()
Copyright © 2003-2008 Jive Software.