moses.security
Class KeyGenerator

java.lang.Object
  |
  +--moses.security.KeyGenerator

public class KeyGenerator
extends java.lang.Object

This class provides methods for generating DSA (Digital Signature Algorithm) public/private key pairs. It contains methods for retrieving the keys thus created.


Constructor Summary
KeyGenerator()
          The constructor of this class creates a public/private key pair and stores the values in two private variable for later retrieval.
 
Method Summary
 java.security.PrivateKey getPrivate()
          Getter method.
 java.security.PublicKey getPublic()
          Getter method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyGenerator

public KeyGenerator()
The constructor of this class creates a public/private key pair and stores the values in two private variable for later retrieval.

Method Detail

getPublic

public java.security.PublicKey getPublic()
Getter method.

Returns:
returns the public key generated using the for the DSA signature algorithm.

getPrivate

public java.security.PrivateKey getPrivate()
Getter method.

Returns:
returns the private key generated using the for the DSA signature algorithm.