cryptix.pgp
Class SecretKeyCertificate
java.lang.Object
cryptix.pgp.Packet
cryptix.pgp.Certificate
cryptix.pgp.SecretKeyCertificate
- public final class SecretKeyCertificate
- extends Certificate
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:
- unattributed
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 |
timeStamp
protected transient java.util.Date timeStamp
unixTime
protected int unixTime
daysValid
protected int daysValid
version
protected byte version
SecretKeyCertificate
public SecretKeyCertificate(SecretKey key0,
Passphrase passphrase,
RandomStream rand)
throws java.io.IOException
SecretKeyCertificate
public SecretKeyCertificate(java.io.DataInput in,
int length)
throws java.io.IOException
read
public void read(java.io.DataInput in,
int length)
throws java.io.IOException
- Overrides:
read
in class Certificate
- Throws:
java.io.IOException
write
public int write(java.io.DataOutput out)
throws java.io.IOException
- Overrides:
write
in class Certificate
- Throws:
java.io.IOException
getSecretKey
public SecretKey getSecretKey(Passphrase passphrase)
throws DecryptException
- Throws:
DecryptException
id
public final KeyID id()
- Gets the key ID.
- Returns:
- the ID of the key in the certificate.
toString
public java.lang.String toString()
- Overrides:
toString
in class Certificate
getType
public int getType()
- Overrides:
getType
in class Certificate
validUntil
public java.util.Date validUntil()
expired
public boolean expired()