public final class ServerKeyStoreManager extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String password)
Decrypts a password with the server's password.
|
static ServerKeyStoreManager |
getInstance()
Returns the instance of the ServerKeyStoreManager.
|
KeyManagerFactory |
getKeyManagerFactory()
Creates a
KeyManagerFactory for the RMI encryption. |
KeyStore |
getKeyStore()
Returns the keystore of the server.
|
char[] |
getKeyStorePassword()
Returns the keystore password as a char array.
|
void |
setJavaSSLProperties()
Sets java runtime properties for SSL.
|
void |
unloadKeyStore()
Unloads the keystore by setting it to null.
|
public static ServerKeyStoreManager getInstance()
public String decrypt(String password) throws ServerKeyStoreException
password - encrypted passwordServerKeyStoreException - in case of failurepublic KeyStore getKeyStore() throws ServerKeyStoreException
ServerKeyStoreException - in case key store initialization failspublic void unloadKeyStore()
public KeyManagerFactory getKeyManagerFactory() throws ServerKeyStoreException
KeyManagerFactory for the RMI encryption.ServerKeyStoreException - in case of failurepublic void setJavaSSLProperties()
public char[] getKeyStorePassword()
Copyright © 2017. All rights reserved.