gnu.crypto.keyring

Class CertificateEntry


public final class CertificateEntry
extends PrimitiveEntry

An immutable class representing a trusted certificate entry.
Version:
$Revision: 1.7 $

Field Summary

static int
TYPE

Fields inherited from class gnu.crypto.keyring.PrimitiveEntry

creationDate

Fields inherited from class gnu.crypto.keyring.Entry

payload, properties, type

Constructor Summary

CertificateEntry(Certificate certificate, Date creationDate, Properties properties)
Creates a new certificate entry.

Method Summary

static CertificateEntry
decode(DataInputStream in)
protected void
encodePayload()
Certificate
getCertificate()
Returns this entry's certificate.

Methods inherited from class gnu.crypto.keyring.PrimitiveEntry

equals, getAlias, getCreationDate, makeCreationDate

Methods inherited from class gnu.crypto.keyring.Entry

defaultDecode, encode, encodePayload, getPayload, getProperties

Field Details

TYPE

public static final int TYPE
Field Value:
5

Constructor Details

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.

Method Details

decode

public static CertificateEntry decode(DataInputStream in)
            throws IOException

encodePayload

protected void encodePayload()
            throws IOException
Overrides:
encodePayload in interface Entry

getCertificate

public Certificate getCertificate()
Returns this entry's certificate.
Returns:
The certificate.

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.