All Packages Class Hierarchy This Package Previous Next Index
Class is.hi.logir.cryptonite.KeyRecord
java.lang.Object
|
+----is.hi.logir.cryptonite.Cryptonite
|
+----is.hi.logir.cryptonite.KeyRecord
- public class KeyRecord
- extends Cryptonite
This class holds key certificates for a particular key, linking it
to the owners name and e-mail and a notes strings.
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 for
key
which supposedly
belongs to ownerName
who has e-mail adress
ownerMail
.
-
KeyRecord(String)
- Parse a KeyRecord from String.
-
getFingerprint()
- Return the SHA1 fingerprint of this KeyRecord.
-
getKey()
- Return the actual 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.
-
getSignatures()
- Returns the Vector holding the signatures contained in this record.
-
sign(SignatureKey)
-
-
toString()
- Return a CDS for this KeyRecord.
KeyRecord
public KeyRecord(Key key,
String ownerName,
String ownerMail,
String notes)
- Create a new KeyRecord for
key
which supposedly
belongs to ownerName
who has e-mail adress
ownerMail
. Additional notes are taken from
notes
.
KeyRecord
public KeyRecord(String arg) throws InvalidCDSException
- Parse a KeyRecord from String.
- Throws: InvalidCDSException
- if the string is invalid.
getKey
public Key getKey()
- Return the actual 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.
getSignatures
public Vector getSignatures()
- Returns the Vector holding the signatures contained in this record.
sign
public void sign(SignatureKey sk) throws KeyException
- Throws: KeyException
- if sk can't be used to sign this
record for some reason.
toString
public String toString()
- Return a CDS for this KeyRecord.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index