cryptix.pgp
Class Packet

java.lang.Object
  |
  +--cryptix.pgp.Packet
Direct Known Subclasses:
Certificate, Comment, CompressedData, ConvEncryptedData, KeyRingTrust, LiteralData, PublicKeyEncrypted, Signature, UserId

public abstract class Packet
extends java.lang.Object

DOCUMENT ME.


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:
original author not stated, Jill Baker

Field Summary
static int COMMENT
           
static int COMPRESSED
           
static int CONV_ENCRYPTED
           
static int MESSAGE_DIGEST
           
static int PLAINTEXT
           
static int PUBLIC_KEY
           
static int PUBLIC_KEY_ENCRYPTED
           
static int SECRET_KEY
           
static int SIGNATURE
           
static int TRUST
           
static int USER_ID
           
 
Constructor Summary
protected Packet()
           
protected Packet(java.io.DataInput in, int length)
           
 
Method Summary
static int ctbToLengthSpecifier(int ctb)
           
static int ctbToType(int ctb)
           
 int getDefaultLengthSpecifier()
           
abstract  int getType()
           
static boolean isCTB(int ctb)
           
static boolean isLegalPacketType(int n)
           
 void load(byte[] buf)
           
 void load(byte[] buf, int offset)
           
 void load(byte[] buf, int offset, int length)
           
static int makeCTB(int type, int lengthSpecifier)
           
abstract  void read(java.io.DataInput in, int length)
           
 byte[] save()
           
abstract  int write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUBLIC_KEY_ENCRYPTED

public static final int PUBLIC_KEY_ENCRYPTED

SIGNATURE

public static final int SIGNATURE

MESSAGE_DIGEST

public static final int MESSAGE_DIGEST

SECRET_KEY

public static final int SECRET_KEY

PUBLIC_KEY

public static final int PUBLIC_KEY

COMPRESSED

public static final int COMPRESSED

CONV_ENCRYPTED

public static final int CONV_ENCRYPTED

PLAINTEXT

public static final int PLAINTEXT

TRUST

public static final int TRUST

USER_ID

public static final int USER_ID

COMMENT

public static final int COMMENT
Constructor Detail

Packet

protected Packet()

Packet

protected Packet(java.io.DataInput in,
                 int length)
          throws java.io.IOException
Method Detail

isCTB

public static final boolean isCTB(int ctb)

ctbToType

public static final int ctbToType(int ctb)

ctbToLengthSpecifier

public static final int ctbToLengthSpecifier(int ctb)

makeCTB

public static final int makeCTB(int type,
                                int lengthSpecifier)

isLegalPacketType

public static boolean isLegalPacketType(int n)

load

public final void load(byte[] buf)
                throws java.io.IOException

load

public final void load(byte[] buf,
                       int offset)
                throws java.io.IOException

load

public final void load(byte[] buf,
                       int offset,
                       int length)
                throws java.io.IOException

save

public final byte[] save()
                  throws java.io.IOException

getDefaultLengthSpecifier

public int getDefaultLengthSpecifier()

getType

public abstract int getType()

read

public abstract void read(java.io.DataInput in,
                          int length)
                   throws java.io.IOException

write

public abstract int write(java.io.DataOutput out)
                   throws java.io.IOException