|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--is.logi.crypto.Crypto | +--is.logi.crypto.keys.KeyRecord
This class holds a particular key, linking it to the owners name and e-mail and annotation.
The CDS for a KeyRecord object is KeyRecord(key,ownerName,ownerMail,notes)
where key is a CDF for a Key object and the other parameters are strings,
which may be quoted.
Key
,
KeySource
Fields inherited from class is.logi.crypto.Crypto |
BIT,
cdsPath,
keySource,
NIBBLE,
primeCertainty,
random |
Constructor Summary | |
KeyRecord(Key key,
java.lang.String ownerName,
java.lang.String ownerMail,
java.lang.String notes)
Create a new KeyRecord. |
Method Summary | |
Fingerprint |
getFingerprint()
Return the SHA1 fingerprint of this KeyRecord. |
Key |
getKey()
Return the key from this record. |
java.lang.String |
getNotes()
Return the notes about this key. |
java.lang.String |
getOwnerMail()
Return the e-mail address of the key's owner. |
java.lang.String |
getOwnerName()
Return the name of the key's owner. |
static KeyRecord |
parseCDS(java.lang.String arg)
If "KeyRecord( key )" is a valid CDS for a KeyRecord, then KeyRecord.parseCDS(key) will return the described KeyRecord object. |
java.lang.String |
toString()
Return a CDS for this KeyRecord. |
Methods inherited from class is.logi.crypto.Crypto |
binString,
binString,
equal,
equalRelaxed,
equalSub,
fromHexNibble,
fromHexString,
fromString,
fromString,
hexString,
hexString,
hexString,
hexString,
makeClass,
makeInt,
makeLong,
makeSessionKey,
pastSpace,
pickBits,
pickBits,
readInt,
writeBytes,
writeBytes,
writeInt |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public KeyRecord(Key key, java.lang.String ownerName, java.lang.String ownerMail, java.lang.String notes)
key
which supposedly
belongs to ownerName
who has e-mail adress
ownerMail
. Additional notes are taken from
notes
.Method Detail |
public static KeyRecord parseCDS(java.lang.String arg) throws InvalidCDSException
A valid CDS can be created by calling the KeyRecord.toString() method.
Crypto.fromString(String)
public Key getKey()
public java.lang.String getOwnerName()
public java.lang.String getOwnerMail()
public java.lang.String getNotes()
public Fingerprint getFingerprint()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |