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

Constructor Index

 o KeyRecord(Key, String, String, String)
Create a new KeyRecord.

Method Index

 o getFingerprint()
Return the SHA1 fingerprint of this KeyRecord.
 o getKey()
Return the 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 parseCDS(String)
If "KeyRecord( key )" is a valid CDS for a KeyRecord, then KeyRecord.parseCDS(key) will return the described KeyRecord object.
 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. It contains key which supposedly belongs to ownerName who has e-mail adress ownerMail. Additional notes are taken from notes.

Methods

 o 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
 o getKey
 public Key getKey()
Return the 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 toString
 public String toString()
Return a CDS for this KeyRecord.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index