@ThreadSafe public final class ClientSecurityContext extends SecurityContext
Holds a client context by keeping a reference to a server URI and by generating an identifying UUID.
The generated UUID is used to establish a relation between RMI server sessions and the client's context for socket creation. This is needed because the framework allows configurations where mutiple services are running within the same process, each with its own client / server properties.
Constructor and Description |
---|
ClientSecurityContext(Logger logger)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
SocketFactory |
getSSLSocketFactory()
Gets the SSL socket factory.
|
protected void |
useDefaults()
Uses default values from system properties.
|
checkForSecureOperation, createSSLContext, getCryptProperties, getKeyStoreConfig, getLogger, getRealmProperties, getTrustStoreConfig, isCertified, isSecure, isServer, setCertified, setCryptProperties, setRealmProperties, setSecure, setUp
public ClientSecurityContext(@Nonnull Logger logger)
logger
- The logger instance to use.@Nonnull @CheckReturnValue public SocketFactory getSSLSocketFactory() throws SSLException
SSLException
- When appropriate.protected void useDefaults() throws SSLException
useDefaults
in class SecurityContext
SSLException
- When appropriate.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.