public final class ReplSessionSecurity extends Object
Constructor and Description |
---|
ReplSessionSecurity()
Create a ReplSessionSecurity instance from a provided multimaster domain configuration.
|
ReplSessionSecurity(SortedSet<String> sslCertNicknames,
SortedSet<String> sslProtocols,
SortedSet<String> sslCipherSuites,
boolean sslEncryption)
Create a ReplSessionSecurity instance from the supplied configuration values.
|
Modifier and Type | Method and Description |
---|---|
Session |
createClientSession(Socket socket,
int soTimeout)
Create a new protocol session in the client role on the provided socket.
|
Session |
createServerSession(Socket socket,
int soTimeout)
Create a new protocol session in the server role on the provided socket.
|
boolean |
isSslEncryption()
Determine whether sessions to a given replication server should be encrypted.
|
String |
toString() |
public ReplSessionSecurity()
public ReplSessionSecurity(SortedSet<String> sslCertNicknames, SortedSet<String> sslProtocols, SortedSet<String> sslCipherSuites, boolean sslEncryption)
sslCertNicknames
- The names of the local certificates to use, or null if none is specified.sslProtocols
- The protocols that should be enabled, or null if the default protocols should be used.sslCipherSuites
- The cipher suites that should be enabled, or null if the default cipher suites should be used.sslEncryption
- Whether replication sessions use SSL encryption.public Session createClientSession(Socket socket, int soTimeout) throws ConfigException, IOException
socket
- The connected socket.soTimeout
- The socket timeout option to use for the protocol session.ConfigException
- If the protocol session could not be established due to a configuration problem.IOException
- If the protocol session could not be established for some other reason.public Session createServerSession(Socket socket, int soTimeout) throws ConfigException, IOException
socket
- The connected socket.soTimeout
- The socket timeout option to use for the protocol session.ConfigException
- If the protocol session could not be established due to a configuration problem.IOException
- If the protocol session could not be established for some other reason.public boolean isSslEncryption()
Copyright 2010-2018 ForgeRock AS.