public class RSAKeyLoader
extends java.lang.Object
Constructor and Description |
---|
RSAKeyLoader(int id,
java.lang.String configHome)
Creates a new instance of RSAKeyLoader
|
Modifier and Type | Method and Description |
---|---|
java.security.PrivateKey |
loadPrivateKey()
Loads the private key of this process
|
java.security.PublicKey |
loadPublicKey() |
java.security.PublicKey |
loadPublicKey(int id)
Loads the public key of some processes from configuration files
|
public RSAKeyLoader(int id, java.lang.String configHome)
public java.security.PublicKey loadPublicKey(int id) throws java.lang.Exception
java.lang.Exception
- problems reading or parsing the keypublic java.security.PublicKey loadPublicKey() throws java.lang.Exception
java.lang.Exception
public java.security.PrivateKey loadPrivateKey() throws java.lang.Exception
java.lang.Exception
- problems reading or parsing the key