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

Class cryptix.pgp.Packet

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

public class Packet
extends Object
Author:
Original Author not stated, Jill Baker

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


Variable Index

 o COMMENT
 o COMPRESSED
 o CONV_ENCRYPTED
 o MESSAGE_DIGEST
 o PLAINTEXT
 o PUBLIC_KEY
 o PUBLIC_KEY_ENCRYPTED
 o SECRET_KEY
 o SIGNATURE
 o TRUST
 o USER_ID

Constructor Index

 o Packet()
 o Packet(DataInput, int)

Method Index

 o ctbToLengthSpecifier(int)
 o ctbToType(int)
 o getDefaultLengthSpecifier()
 o getType()
 o isCTB(int)
 o isLegalPacketType(int)
 o load(byte[])
 o load(byte[], int)
 o load(byte[], int, int)
 o makeCTB(int, int)
 o read(DataInput, int)
 o save()
 o write(DataOutput)

Variables

 o PUBLIC_KEY_ENCRYPTED
  public final static int PUBLIC_KEY_ENCRYPTED
 o SIGNATURE
  public final static int SIGNATURE
 o MESSAGE_DIGEST
  public final static int MESSAGE_DIGEST
 o SECRET_KEY
  public final static int SECRET_KEY
 o PUBLIC_KEY
  public final static int PUBLIC_KEY
 o COMPRESSED
  public final static int COMPRESSED
 o CONV_ENCRYPTED
  public final static int CONV_ENCRYPTED
 o PLAINTEXT
  public final static int PLAINTEXT
 o TRUST
  public final static int TRUST
 o USER_ID
  public final static int USER_ID
 o COMMENT
  public final static int COMMENT

Constructors

 o Packet
  protected Packet()
 o Packet
  protected Packet(DataInput in,
                   int length) throws IOException

Methods

 o isCTB
  public final static boolean isCTB(int ctb)
 o ctbToType
  public final static int ctbToType(int ctb)
 o ctbToLengthSpecifier
  public final static int ctbToLengthSpecifier(int ctb)
 o makeCTB
  public final static int makeCTB(int type,
                                  int lengthSpecifier)
 o isLegalPacketType
  public final static boolean isLegalPacketType(int n)
 o load
  public final void load(byte buf[]) throws IOException
 o load
  public final void load(byte buf[],
                         int offset) throws IOException
 o load
  public final void load(byte buf[],
                         int offset,
                         int length) throws IOException
 o save
  public final byte[] save() throws IOException
 o getDefaultLengthSpecifier
  public int getDefaultLengthSpecifier()
 o getType
  public abstract int getType()
 o read
  public abstract void read(DataInput in,
                            int length) throws IOException
 o write
  public abstract int write(DataOutput out) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index