|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.kernel.PubKey
Public key of the bank, used to sign the bank notes.
Constructor Summary | |
PubKey(java.math.BigInteger e,
java.math.BigInteger n)
Creates a public key from the public exponent and the modulus. |
|
PubKey(java.lang.String value)
Re-build the object from it's string representation. |
Method Summary | |
java.math.BigInteger |
getE()
Returns the public exponent of the key. |
java.math.BigInteger |
getN()
Returns the modulus of the key. |
static PubKey |
load(java.lang.String filename)
Re-build the object from it's file representation. |
void |
save(java.lang.String filename)
Saves this object into it's file representation. |
java.lang.String |
toString()
Returns a string representation of this PubKey. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PubKey(java.math.BigInteger e, java.math.BigInteger n)
e
- the public exponentn
- the moduluspublic PubKey(java.lang.String value)
value
- the string representation of the objectMethod Detail |
public java.math.BigInteger getE()
public java.math.BigInteger getN()
public static PubKey load(java.lang.String filename)
filename
- the filenamepublic void save(java.lang.String filename)
filename
- the filenamepublic 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 |