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
Constructor Summary |
protected |
Packet()
|
protected |
Packet(java.io.DataInput in,
int length)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Packet
protected Packet()
Packet
protected Packet(java.io.DataInput in,
int length)
throws java.io.IOException
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