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
- See Also:
- Constant Field Values
SIGNATURE
public static final int SIGNATURE
- See Also:
- Constant Field Values
MESSAGE_DIGEST
public static final int MESSAGE_DIGEST
- See Also:
- Constant Field Values
SECRET_KEY
public static final int SECRET_KEY
- See Also:
- Constant Field Values
PUBLIC_KEY
public static final int PUBLIC_KEY
- See Also:
- Constant Field Values
COMPRESSED
public static final int COMPRESSED
- See Also:
- Constant Field Values
CONV_ENCRYPTED
public static final int CONV_ENCRYPTED
- See Also:
- Constant Field Values
PLAINTEXT
public static final int PLAINTEXT
- See Also:
- Constant Field Values
TRUST
public static final int TRUST
- See Also:
- Constant Field Values
USER_ID
public static final int USER_ID
- See Also:
- Constant Field Values
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
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
- Throws:
java.io.IOException
load
public final void load(byte[] buf,
int offset)
throws java.io.IOException
- Throws:
java.io.IOException
load
public final void load(byte[] buf,
int offset,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
save
public final byte[] save()
throws java.io.IOException
- 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
- Throws:
java.io.IOException
write
public abstract int write(java.io.DataOutput out)
throws java.io.IOException
- Throws:
java.io.IOException