cryptix.pgp
Class KeyRingTrust

java.lang.Object
  extended bycryptix.pgp.Packet
      extended bycryptix.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-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Since:
Cryptix 2.2 or earlier

Field Summary
static KeyRingTrust ALWAYS
           
static KeyRingTrust INTRODUCER1
           
static KeyRingTrust INTRODUCER2
           
static KeyRingTrust NOTUSUALLY
           
static KeyRingTrust SECRING
           
static KeyRingTrust UNDEF
           
static KeyRingTrust UNKNOWN
           
static KeyRingTrust USUALLY
           
 
Fields inherited from class cryptix.pgp.Packet
COMMENT, COMPRESSED, CONV_ENCRYPTED, MESSAGE_DIGEST, PLAINTEXT, PUBLIC_KEY, PUBLIC_KEY_ENCRYPTED, SECRET_KEY, SIGNATURE, TRUST, USER_ID
 
Constructor Summary
KeyRingTrust(byte trust)
          Creates a new object with the trust level trust.
KeyRingTrust(java.io.DataInput in, int length)
          Reads and creates a trust packet from in with the given length.
 
Method Summary
 int getDefaultLengthSpecifier()
          What is this packet's default length? (used by PacketFactory).
 int getType()
          What type of packet is this? (used by PacketFactory).
 void read(java.io.DataInput in, int length)
          Reads a trust packet from in with the given length.
 java.lang.String toString()
           
 int trustValue()
           
 int write(java.io.DataOutput out)
          Writes this trust packet to out.
 
Methods inherited from class cryptix.pgp.Packet
ctbToLengthSpecifier, ctbToType, isCTB, isLegalPacketType, load, load, load, makeCTB, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEF

public static final KeyRingTrust UNDEF

UNKNOWN

public static final KeyRingTrust UNKNOWN

NOTUSUALLY

public static final KeyRingTrust NOTUSUALLY

INTRODUCER1

public static final KeyRingTrust INTRODUCER1

INTRODUCER2

public static final KeyRingTrust INTRODUCER2

USUALLY

public static final KeyRingTrust USUALLY

ALWAYS

public static final KeyRingTrust ALWAYS

SECRING

public static final KeyRingTrust SECRING
Constructor Detail

KeyRingTrust

public KeyRingTrust(byte trust)
Creates a new object with the trust level trust.


KeyRingTrust

public KeyRingTrust(java.io.DataInput in,
                    int length)
             throws java.io.IOException
Reads and creates a trust packet from in with the given length.

Method Detail

trustValue

public int trustValue()

read

public void read(java.io.DataInput in,
                 int length)
          throws java.io.IOException
Reads a trust packet from in with the given length.

Specified by:
read in class Packet
Throws:
java.io.IOException

write

public int write(java.io.DataOutput out)
          throws java.io.IOException
Writes this trust packet to out.

Specified by:
write in class Packet
Throws:
java.io.IOException

toString

public java.lang.String toString()

getType

public int getType()
What type of packet is this? (used by PacketFactory).

Specified by:
getType in class Packet

getDefaultLengthSpecifier

public int getDefaultLengthSpecifier()
What is this packet's default length? (used by PacketFactory).

Overrides:
getDefaultLengthSpecifier in class Packet