cryptix.pgp
Class UserIdCertificate

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

public final class UserIdCertificate
extends java.lang.Object

Stores all the information about a user in a keyring - their key certificate, usernames, trust packet(s) and any signatures.

Each user ID can contain any number of signatures and corresponding trust packets. This class is used by KeyRingEntry to deal with this.


Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Since:
Cryptix 2.2 or earlier
Author:
Ian Brown

Constructor Summary
(package private) UserIdCertificate(PacketInputStream reader)
           
(package private) UserIdCertificate(UserId userName, KeyRingTrust utrust, java.util.Vector signatures, java.util.Vector trusts)
           
 
Method Summary
(package private)  boolean checkSignatures(KeyStore store, Certificate cert)
           
(package private)  int getTrustValue()
           
(package private)  void restore(PacketInputStream reader)
           
 Signature[] signatures()
           
 java.lang.String toString()
           
 UserId userId()
           
 java.lang.String userName()
           
(package private)  void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserIdCertificate

UserIdCertificate(UserId userName,
                  KeyRingTrust utrust,
                  java.util.Vector signatures,
                  java.util.Vector trusts)
            throws FormatException

UserIdCertificate

UserIdCertificate(PacketInputStream reader)
            throws java.io.IOException
Method Detail

userName

public java.lang.String userName()

userId

public UserId userId()

signatures

public Signature[] signatures()

checkSignatures

boolean checkSignatures(KeyStore store,
                        Certificate cert)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

restore

void restore(PacketInputStream reader)
       throws java.io.IOException

write

void write(java.io.DataOutput out)
     throws java.io.IOException

getTrustValue

int getTrustValue()