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

Constructor Index

 o KeyRecord(Key, String, String, String)
Create a new KeyRecord for key which supposedly belongs to ownerName who has e-mail adress ownerMail.
 o KeyRecord(String)
Parse a KeyRecord from String.

Method Index

 o getFingerprint()
Return the SHA1 fingerprint of this KeyRecord.
 o getKey()
Return the actual key from this record.
 o getNotes()
Return the notes about this key.
 o getOwnerMail()
Return the e-mail address of the key's owner.
 o getOwnerName()
Return the name of the key's owner.
 o getSignatures()
Returns the Vector holding the signatures contained in this record.
 o sign(SignatureKey)
 o toString()
Return a CDS for this KeyRecord.

Constructors

 o 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.

 o KeyRecord
 public KeyRecord(String arg) throws InvalidCDSException
Parse a KeyRecord from String.

Throws: InvalidCDSException
if the string is invalid.

Methods

 o getKey
 public Key getKey()
Return the actual key from this record.

 o getOwnerName
 public String getOwnerName()
Return the name of the key's owner.

 o getOwnerMail
 public String getOwnerMail()
Return the e-mail address of the key's owner.

 o getNotes
 public String getNotes()
Return the notes about this key.

 o getFingerprint
 public Fingerprint getFingerprint()
Return the SHA1 fingerprint of this KeyRecord. Signing this is equivalent to signing the record.

 o getSignatures
 public Vector getSignatures()
Returns the Vector holding the signatures contained in this record.

 o sign
 public void sign(SignatureKey sk) throws KeyException
Throws: KeyException
if sk can't be used to sign this record for some reason.
 o toString
 public String toString()
Return a CDS for this KeyRecord.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index