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() throws org.forgerock.opendj.config.server.ConfigException
org.forgerock.opendj.config.server.ConfigException
- If the supplied configuration was not valid.public ReplSessionSecurity(SortedSet<String> sslCertNicknames, SortedSet<String> sslProtocols, SortedSet<String> sslCipherSuites, boolean sslEncryption) throws org.forgerock.opendj.config.server.ConfigException
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.org.forgerock.opendj.config.server.ConfigException
- If the supplied configuration was not valid.public Session createClientSession(Socket socket, int soTimeout) throws org.forgerock.opendj.config.server.ConfigException, IOException
socket
- The connected socket.soTimeout
- The socket timeout option to use for the protocol session.org.forgerock.opendj.config.server.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 org.forgerock.opendj.config.server.ConfigException, IOException
socket
- The connected socket.soTimeout
- The socket timeout option to use for the protocol session.org.forgerock.opendj.config.server.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-2017 ForgeRock AS. All Rights Reserved.