support.crypto
Class CryptoPublicKey
java.lang.Object
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.
|
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 |
CryptoPublicKey
public CryptoPublicKey(byte[] n,
byte[] e)
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')