support.crypto
Class CryptoPublicKey

java.lang.Object
  extended by support.crypto.CryptoPublicKey

public class CryptoPublicKey
extends Object

A Public Key used to encrypt a message. This class encapsulates both the modulus ('n') and encryption key ('e') components of the Public Key.


Constructor Summary
CryptoPublicKey(byte[] n, byte[] e)
           
 
Method Summary
 byte[] getE()
          Access the encryption key component of the Public Key
 byte[] getN()
          Access the modulus component of the Public Key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoPublicKey

public CryptoPublicKey(byte[] n,
                       byte[] e)
Method Detail

getN

public byte[] getN()
Access the modulus component of the Public Key

Returns:
the modulus ('n')

getE

public byte[] getE()
Access the encryption key component of the Public Key

Returns:
the encryption key ('e')