|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part2.SimpleRSAPrivateKey
A class that implements an RSA private key.
Constructor Summary | |
SimpleRSAPrivateKey(java.math.BigInteger n,
java.math.BigInteger d)
A constructor for an RSA private key with modulus n and private exponent d . |
|
SimpleRSAPrivateKey(SimpleRSAPrivateKey key)
A copy constructor for an RSA private key. |
Method Summary | |
java.lang.String |
decrypt(java.util.AbstractList cipherText)
A method to decrypt the ciphertext cipherText to a string value using this private key. |
java.math.BigInteger |
decrypt(java.math.BigInteger cipherText)
A method to decrypt the ciphertext cipherText to a big integer value using the private key key . |
java.math.BigInteger |
modulus()
A method to return the modulus of this private RSA key. |
java.math.BigInteger |
privateExponent()
A method to return the private exponent of this private RSA key. |
java.lang.String |
toString()
A method to produce a string representation of this private RSA key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleRSAPrivateKey(java.math.BigInteger n, java.math.BigInteger d) throws java.lang.Exception
n
and private exponent d
.
Exception.
java.lang.Exception
public SimpleRSAPrivateKey(SimpleRSAPrivateKey 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 privateExponent() throws java.lang.Exception
Exception.
java.lang.Exception
public java.lang.String toString()
Exception.
public java.math.BigInteger decrypt(java.math.BigInteger cipherText) throws java.lang.Exception
cipherText
to a big integer value using the private key key
.
decrypt
in interface RSAPrivateKey
Exception.
java.lang.Exception
public java.lang.String decrypt(java.util.AbstractList cipherText) throws java.lang.Exception
cipherText
to a string value using this private key.
decrypt
in interface RSAPrivateKey
Exception.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |