|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logi.crypto.Crypto
org.logi.crypto.keys.KeyPair
This class is a simple holder for a pair of public/private keys. Some
encryption algorithms only use a single key, in which case the
public and private fields of a KeyPair may reference the same object.
Either the public or private fields may be null
if the
corresponding key is unknown.
Key
,
KeyRing
Field Summary |
Fields inherited from class org.logi.crypto.Crypto |
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO |
Constructor Summary | |
KeyPair(Key pub,
Key pri)
Create a new KeyPair holder. |
Method Summary | |
Key |
getPrivate()
Return the private key from the pair. |
Key |
getPublic()
Return the public key from the pair. |
java.lang.String |
toString()
Return a CDS for this key-pair. |
Methods inherited from class org.logi.crypto.Crypto |
binString, binString, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, hexString, initRandom, initRandom, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, readBlock, readInt, writeBytes, writeBytes, writeInt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public KeyPair(Key pub, Key pri)
Method Detail |
public Key getPublic()
public Key getPrivate()
public java.lang.String toString()
Crypto.fromString(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |