|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.kernel.KeyRing
This class represents a key ring, i.e. a public key and a private key.
Constructor Summary | |
KeyRing()
Creates a new key ring using the RSA algorithm. |
|
KeyRing(java.lang.String value)
Re-build the object from it's string representation. |
Method Summary | |
java.math.BigInteger |
getD()
Returns the private exponent. |
java.math.BigInteger |
getE()
Returns the public exponent. |
java.math.BigInteger |
getN()
Returns the modulus. |
PubKey |
getPublic()
Creates and returns the public key. |
java.lang.String |
toString()
Returns a string representation of this KeyRing. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public KeyRing()
public KeyRing(java.lang.String value)
value
- the string representation of the objectMethod Detail |
public java.math.BigInteger getE()
public java.math.BigInteger getN()
public java.math.BigInteger getD()
public PubKey getPublic()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |