public class OfficeBuildingRmiClientSocketFactory extends SslRMIClientSocketFactory implements RMIClientSocketFactory, Serializable
OfficeBuildingManager
RMIClientSocketFactory
.
Extends SslRMIClientSocketFactory
to enable use in JConsole
connections.
Constructor and Description |
---|
OfficeBuildingRmiClientSocketFactory(String sslProtocol,
String sslAlgorithm,
byte[] trustStoreContent,
String trustStorePassword)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
static KeyStore |
createKeyStore(byte[] keyStoreContent,
String keyStorePassword)
Creates the
KeyStore . |
Socket |
createSocket(String host,
int port) |
equals, hashCode
public OfficeBuildingRmiClientSocketFactory(String sslProtocol, String sslAlgorithm, byte[] trustStoreContent, String trustStorePassword)
sslProtocol
- SSLContext
protocol.sslAlgorithm
- TrustManager
algorithm.trustStoreContent
- KeyStore
content.trustStorePassword
- KeyStore
password.public static KeyStore createKeyStore(byte[] keyStoreContent, String keyStorePassword) throws Exception
KeyStore
.public Socket createSocket(String host, int port) throws IOException
createSocket
in interface RMIClientSocketFactory
createSocket
in class SslRMIClientSocketFactory
IOException
Copyright © 2005–2016. All rights reserved.