cryptix.pgp
Class KeyRingTrust
java.lang.Object
|
+--cryptix.pgp.Packet
|
+--cryptix.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
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?
|
int |
getType()
What type of packet is this?
|
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 java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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.
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.
- Overrides:
read
in class Packet
write
public int write(java.io.DataOutput out)
throws java.io.IOException
- Writes this trust packet to out.
- Overrides:
write
in class Packet
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getType
public int getType()
- What type of packet is this?
(used by PacketFactory).
- Overrides:
getType
in class Packet
getDefaultLengthSpecifier
public int getDefaultLengthSpecifier()
- What is this packet's default length?
(used by PacketFactory).
- Overrides:
getDefaultLengthSpecifier
in class Packet