public final class ReplSessionSecurity extends Object
| Constructor and Description |
|---|
ReplSessionSecurity()
Create a ReplSessionSecurity instance from a provided multimaster domain
configuration.
|
ReplSessionSecurity(String sslCertNickname,
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() throws ConfigException
ConfigException - If the supplied configuration was not valid.public ReplSessionSecurity(String sslCertNickname, SortedSet<String> sslProtocols, SortedSet<String> sslCipherSuites, boolean sslEncryption) throws ConfigException
sslCertNickname - The name of the local certificate 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.ConfigException - If the supplied configuration was not valid.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-2015 ForgeRock AS. All Rights Reserved.