cryptix.pgp
Class Signature
java.lang.Object
cryptix.pgp.Packet
cryptix.pgp.Signature
- public final class Signature
- extends Packet
DOCUMENT ME.
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.4 $
- Since:
- Cryptix 2.2 or earlier
- Author:
- original author not stated, Jill Baker
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BINARY_IMAGE
public static final int BINARY_IMAGE
- See Also:
- Constant Field Values
CANONICAL_TEXT
public static final int CANONICAL_TEXT
- See Also:
- Constant Field Values
KEY_CERT_GENERIC
public static final int KEY_CERT_GENERIC
- See Also:
- Constant Field Values
KEY_CERT_PERSONA
public static final int KEY_CERT_PERSONA
- See Also:
- Constant Field Values
KEY_CERT_CASUAL_ID
public static final int KEY_CERT_CASUAL_ID
- See Also:
- Constant Field Values
KEY_CERT_POSITIVE_ID
public static final int KEY_CERT_POSITIVE_ID
- See Also:
- Constant Field Values
KEY_COMPROMISE_CERTIFICATE
public static final int KEY_COMPROMISE_CERTIFICATE
- See Also:
- Constant Field Values
USER_ID_REVOCATION_CERTIFICATE
public static final int USER_ID_REVOCATION_CERTIFICATE
- See Also:
- Constant Field Values
TIMESTAMP_CERTIFICATE
public static final int TIMESTAMP_CERTIFICATE
- See Also:
- Constant Field Values
Signature
public Signature(SecretKey key,
MD5 md)
Signature
public Signature(SecretKey key,
MD5 md,
byte type)
Signature
public Signature(SecretKey key,
MD5 md,
RandomStream rand)
Signature
public Signature(SecretKey key,
MD5 md,
RandomStream rand,
byte type)
Signature
public Signature(java.io.DataInput in,
int length)
throws java.io.IOException
read
public void read(java.io.DataInput in,
int length)
throws java.io.IOException
- Specified by:
read
in class Packet
- Throws:
java.io.IOException
write
public int write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in class Packet
- Throws:
java.io.IOException
typeString
public java.lang.String typeString()
toString
public java.lang.String toString()
check
public boolean check(PublicKey key,
MD5 md)
verify
public boolean verify(PublicKey key,
byte[] data)
checkAndGetHash
public byte[] checkAndGetHash(PublicKey key,
MD5 md)
addExtasToHash
public void addExtasToHash(MD5 md)
getSignatureType
public int getSignatureType()
check
public boolean check(PublicKey key,
MessageHash completeHash)
keyId
public byte[] keyId()
getKeyId
public KeyID getKeyId()
getType
public int getType()
- Specified by:
getType
in class Packet