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

Class cryptix.pgp.KeyRingTrust

java.lang.Object
   |
   +----cryptix.pgp.Packet
           |
           +----cryptix.pgp.KeyRingTrust

public final class KeyRingTrust
extends Packet
Represents a PGP trust packet. Also contains some public constants for the different levels of trust defined by PGP for keys.


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


Variable Index

 o ALWAYS
 o INTRODUCER1
 o INTRODUCER2
 o NOTUSUALLY
 o SECRING
 o UNDEF
 o UNKNOWN
 o USUALLY

Constructor Index

 o KeyRingTrust(byte)
Create a new object with the trust level trust0.
 o KeyRingTrust(DataInput, int)
Read and create a trust packet from in.

Method Index

 o getDefaultLengthSpecifier()
What is this packet's default length?

(Used by PacketFactory).

 o getType()
What type of packet is this?

(Used by PacketFactory).

 o read(DataInput, int)
Read a trust packet from in with length.
 o toString()
 o trustValue()
 o write(DataOutput)
Write this trust packet to out.

Variables

 o UNDEF
  public final static KeyRingTrust UNDEF
 o UNKNOWN
  public final static KeyRingTrust UNKNOWN
 o NOTUSUALLY
  public final static KeyRingTrust NOTUSUALLY
 o INTRODUCER1
  public final static KeyRingTrust INTRODUCER1
 o INTRODUCER2
  public final static KeyRingTrust INTRODUCER2
 o USUALLY
  public final static KeyRingTrust USUALLY
 o ALWAYS
  public final static KeyRingTrust ALWAYS
 o SECRING
  public final static KeyRingTrust SECRING

Constructors

 o KeyRingTrust
  public KeyRingTrust(byte trust0)
Create a new object with the trust level trust0.
 o KeyRingTrust
  public KeyRingTrust(DataInput in,
                      int length) throws IOException
Read and create a trust packet from in.

Methods

 o trustValue
  public int trustValue()
 o read
  public void read(DataInput in,
                   int length) throws IOException
Read a trust packet from in with length.
Overrides:
read in class Packet
 o write
  public int write(DataOutput out) throws IOException
Write this trust packet to out.
Overrides:
write in class Packet
 o toString
  public String toString()
Overrides:
toString in class Object
 o getType
  public int getType()
What type of packet is this?

(Used by PacketFactory).

Overrides:
getType in class Packet
 o getDefaultLengthSpecifier
  public int getDefaultLengthSpecifier()
What is this packet's default length?

(Used by PacketFactory).

Overrides:
getDefaultLengthSpecifier in class Packet

All Packages  Class Hierarchy  This Package  Previous  Next  Index