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
-
KeyRingEntry(Certificate, KeyRingTrust)
- Create a new
KeyRingEntry
with these parameters.
-
KeyRingEntry(Certificate, KeyRingTrust, Vector)
- Create a new
KeyRingEntry
with these parameters.
-
KeyRingEntry(PacketInputStream, KeyRingTrust)
- Read in a
KeyRingEntry
from reader
.
If the entry does not contain any trust information (i.e.
-
addNameAndSignatures(UserId, KeyRingTrust, Vector, Vector)
- Add these names, trust packets and signatures to this entry.
-
certificate()
- Return the certificate contained in this entry.
-
checkSignatures(KeyStore)
- Check this signatures on this entry using the keys in
store
.
-
getUserIdCertificates()
- Return an array containing all the user ID certificates contained
in this entry.
-
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.
-
publicKey()
- Return the public key contained in this entry.
If the entry contains a secret key, null
is returned.
-
toString()
- Convert the entry to a
String
which contains the certificate,
user names and their associated trust and signature packets.
-
trustValue()
- How well is the key trusted overall?
-
write(DataOutput)
- Write out this entry as a series of PGP packets to
out
.
KeyRingEntry
public KeyRingEntry(Certificate certificate,
KeyRingTrust certificateTrust)
- Create a new
KeyRingEntry
with these parameters.
KeyRingEntry
public KeyRingEntry(Certificate certificate,
KeyRingTrust certificateTrust,
Vector userCerts)
- Create a new
KeyRingEntry
with these parameters.
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
.
addNameAndSignatures
public void addNameAndSignatures(UserId userName,
KeyRingTrust utrust,
Vector signatures,
Vector trusts) throws FormatException
- Add these names, trust packets and signatures to this entry.
trustValue
public int trustValue()
- How well is the key trusted overall?
certificate
public Certificate certificate()
- Return the certificate contained in this entry.
publicKey
public PublicKey publicKey()
- Return the public key contained in this entry.
If the entry contains a secret key, null
is returned.
getUserIdCertificates
public UserIdCertificate[] getUserIdCertificates()
- Return an array containing all the user ID certificates contained
in this entry.
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.
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
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
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