All Packages Class Hierarchy This Package Previous Next Index
Class is.logi.crypto.keys.KeyRecord
java.lang.Object
|
+----is.logi.crypto.Crypto
|
+----is.logi.crypto.keys.KeyRecord
- public class KeyRecord
- extends Crypto
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.
- Author:
- Logi Ragnarsson
(logir@hi.is)
- See Also:
- Key, KeySource
-
KeyRecord(Key, String, String, String)
-
Create a new KeyRecord.
-
getFingerprint()
- Return the SHA1 fingerprint of this KeyRecord.
-
getKey()
- Return the key from this record.
-
getNotes()
- Return the notes about this key.
-
getOwnerMail()
- Return the e-mail address of the key's owner.
-
getOwnerName()
- Return the name of the key's owner.
-
parseCDS(String)
- If "KeyRecord( key )" is a valid CDS for a KeyRecord, then
KeyRecord.parseCDS(key) will return the described KeyRecord object.
-
toString()
- Return a CDS for this KeyRecord.
KeyRecord
public KeyRecord(Key key,
String ownerName,
String ownerMail,
String notes)
- Create a new KeyRecord. It contains
key
which supposedly
belongs to ownerName
who has e-mail adress
ownerMail
. Additional notes are taken from
notes
.
parseCDS
public static KeyRecord parseCDS(String arg) throws InvalidCDSException
- If "KeyRecord( key )" is a valid CDS for a KeyRecord, then
KeyRecord.parseCDS(key) will return the described KeyRecord object.
A valid CDS can be created by calling the KeyRecord.toString() method.
- Throws: InvalidCDSException
- if the CDS is malformed.
- See Also:
- fromString
getKey
public Key getKey()
- Return the key from this record.
getOwnerName
public String getOwnerName()
- Return the name of the key's owner.
getOwnerMail
public String getOwnerMail()
- Return the e-mail address of the key's owner.
getNotes
public String getNotes()
- Return the notes about this key.
getFingerprint
public Fingerprint getFingerprint()
- Return the SHA1 fingerprint of this KeyRecord. Signing this is
equivalent to signing the record.
toString
public String toString()
- Return a CDS for this KeyRecord.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index