|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part2.SimpleRSAPublicKey
A class that implements an RSA public key.
Constructor Summary | |
SimpleRSAPublicKey(java.math.BigInteger n,
java.math.BigInteger e)
A constructor for an RSA public key with modulus n and public exponent e . |
|
SimpleRSAPublicKey(SimpleRSAPublicKey key)
A copy constructor for an RSA public key. |
Method Summary | |
java.math.BigInteger |
encrypt(java.math.BigInteger m)
A method to encrypt the big integer m using this public key. |
java.util.AbstractList |
encrypt(java.lang.String s)
A method to encrypt the string s using this public key. |
java.math.BigInteger |
modulus()
A method to return the modulus of this public RSA key. |
java.math.BigInteger |
publicExponent()
A method to return the public exponent of this public RSA key. |
java.lang.String |
toString()
A method to produce a string representation of this public RSA key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleRSAPublicKey(java.math.BigInteger n, java.math.BigInteger e) throws java.lang.Exception
n
and public exponent e
.
Exception.
java.lang.Exception
public SimpleRSAPublicKey(SimpleRSAPublicKey key) throws java.lang.Exception
Exception.
java.lang.Exception
Method Detail |
public java.math.BigInteger modulus() throws java.lang.Exception
Exception.
java.lang.Exception
public java.math.BigInteger publicExponent() throws java.lang.Exception
Exception.
java.lang.Exception
public java.lang.String toString()
Exception.
public java.math.BigInteger encrypt(java.math.BigInteger m) throws java.lang.Exception
m
using this public key.
encrypt
in interface RSAPublicKey
Exception.
java.lang.Exception
public java.util.AbstractList encrypt(java.lang.String s) throws java.lang.Exception
s
using this public key.
encrypt
in interface RSAPublicKey
BigInteger
objects.
Exception.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |