public class OfficeBuildingRmiServerSocketFactory extends Object implements RMIServerSocketFactory
Constructor and Description |
---|
OfficeBuildingRmiServerSocketFactory(String sslProtocol,
String sslAlgorithm,
byte[] keyStoreContent,
String keyStorePassword)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
ServerSocket |
createServerSocket(int port) |
static byte[] |
getKeyStoreContent(File keyStore)
Obtains the
KeyStore content. |
public OfficeBuildingRmiServerSocketFactory(String sslProtocol, String sslAlgorithm, byte[] keyStoreContent, String keyStorePassword) throws Exception
sslProtocol
- SSLContext
protocol.sslAlgorithm
- KeyManager
algorithm.keyStoreContent
- KeyStore
content.keyStorePassword
- KeyStore
password. May be null
if not
required.Exception
- If fails to initiate.public static byte[] getKeyStoreContent(File keyStore) throws IOException
KeyStore
content.keyStore
- Location of the KeyStore
.KeyStore
content.IOException
- If fails to load KeyStore
content.public ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in interface RMIServerSocketFactory
IOException
Copyright © 2005–2016. All rights reserved.