gnu.crypto.keyring
Class CertificateEntry
java.lang.Object
gnu.crypto.keyring.Entry
gnu.crypto.keyring.PrimitiveEntry
gnu.crypto.keyring.CertificateEntry
public final class CertificateEntry
- extends PrimitiveEntry
An immutable class representing a trusted certificate entry.
- Version:
- $Revision: 1.7 $
Field Summary |
static int |
TYPE
|
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
CertificateEntry
public CertificateEntry(Certificate certificate,
Date creationDate,
Properties properties)
- Creates a new certificate entry.
- Parameters:
certificate
- The certificate.creationDate
- The creation date.properties
- The alias.
- Throws:
IllegalArgumentException
- If any argument is null, or if the alias
is empty.
decode
public static CertificateEntry decode(DataInputStream in)
throws IOException
- Throws:
IOException
getCertificate
public Certificate getCertificate()
- Returns this entry's certificate.
- Returns:
- The certificate.
encodePayload
protected void encodePayload()
throws IOException
- Description copied from class:
Entry
- This method is called of subclasses when the payload data needs to be
created.
- Specified by:
encodePayload
in class Entry
- Throws:
IOException
- If an encoding error occurs.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.