Class cryptix.pgp.KeyRingEntry
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.KeyRingEntry

java.lang.Object
   |
   +----cryptix.pgp.KeyRingEntry

public final class KeyRingEntry
extends Object

Constructor Index

 o KeyRingEntry(Certificate, KeyRingTrust)
Create a new KeyRingEntry with these parameters.
 o KeyRingEntry(Certificate, KeyRingTrust, Vector)
Create a new KeyRingEntry with these parameters.
 o KeyRingEntry(PacketInputStream, KeyRingTrust)
Read in a KeyRingEntry from reader.

If the entry does not contain any trust information (i.e.

Method Index

 o addNameAndSignatures(UserId, KeyRingTrust, Vector, Vector)
Add these names, trust packets and signatures to this entry.
 o certificate()
Return the certificate contained in this entry.
 o checkSignatures(KeyStore)
Check this signatures on this entry using the keys in store.
 o getUserIdCertificates()
Return an array containing all the user ID certificates contained in this entry.
 o primaryName()
Keys may be associated with more than one name and e-mail address, but PGP assumes the first user ID certificate after the key is the most important one.
 o publicKey()
Return the public key contained in this entry.

If the entry contains a secret key, null is returned.

 o toString()
Convert the entry to a String which contains the certificate, user names and their associated trust and signature packets.
 o trustValue()
How well is the key trusted overall?
 o write(DataOutput)
Write out this entry as a series of PGP packets to out.

Constructors

 o KeyRingEntry
  public KeyRingEntry(Certificate certificate,
                      KeyRingTrust certificateTrust)
Create a new KeyRingEntry with these parameters.
 o KeyRingEntry
  public KeyRingEntry(Certificate certificate,
                      KeyRingTrust certificateTrust,
                      Vector userCerts)
Create a new KeyRingEntry with these parameters.
 o KeyRingEntry
  public KeyRingEntry(PacketInputStream reader,
                      KeyRingTrust defaultTrust) throws IOException
Read in a KeyRingEntry from reader.

If the entry does not contain any trust information (i.e. is from a secret keyring or a keyserver) assign the entry defaultTrust.

Methods

 o addNameAndSignatures
  public void addNameAndSignatures(UserId userName,
                                   KeyRingTrust utrust,
                                   Vector signatures,
                                   Vector trusts) throws FormatException
Add these names, trust packets and signatures to this entry.
 o trustValue
  public int trustValue()
How well is the key trusted overall?
 o certificate
  public Certificate certificate()
Return the certificate contained in this entry.
 o publicKey
  public PublicKey publicKey()
Return the public key contained in this entry.

If the entry contains a secret key, null is returned.

 o getUserIdCertificates
  public UserIdCertificate[] getUserIdCertificates()
Return an array containing all the user ID certificates contained in this entry.
 o primaryName
  public String primaryName()
Keys may be associated with more than one name and e-mail address, but PGP assumes the first user ID certificate after the key is the most important one. This function returns that name.
 o toString
  public String toString()
Convert the entry to a String which contains the certificate, user names and their associated trust and signature packets.
Overrides:
toString in class Object
 o checkSignatures
  public boolean checkSignatures(KeyStore store)
Check this signatures on this entry using the keys in store.
Parameters:
store - Retrieve public keys to check the signatures on this entry from store
 o write
  public void write(DataOutput out) throws IOException
Write out this entry as a series of PGP packets to out.

All Packages  Class Hierarchy  This Package  Previous  Next  Index