|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.cinnabarsystems.clm.KeyManager
public class KeyManager
A utility class to read and write encryption keys
| Constructor Summary | |
|---|---|
KeyManager()
|
|
| Method Summary | |
|---|---|
static KeyPair |
generateKeyPair()
Generate a new random keypair |
static PrivateKey |
readPrivateKey(InputStream input)
Read a private key |
static PublicKey |
readPublicKey(InputStream input)
Read a public key |
static void |
saveKey(Key key,
OutputStream output)
Save a key |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyManager()
| Method Detail |
|---|
public static KeyPair generateKeyPair()
throws GeneralSecurityException
GeneralSecurityException
public static void saveKey(Key key,
OutputStream output)
throws IOException,
GeneralSecurityException
key - The key to saveoutput - The stream the key should be saved to
IOException
GeneralSecurityException
public static PrivateKey readPrivateKey(InputStream input)
throws IOException,
GeneralSecurityException
input - The stream from which to read the private key
IOException
GeneralSecurityException
public static PublicKey readPublicKey(InputStream input)
throws IOException,
GeneralSecurityException
input - The stream from which to read the public key
IOException
GeneralSecurityException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||