gnu.crypto.keyring

Class PublicKeyEntry


public final class PublicKeyEntry
extends PrimitiveEntry

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

PublicKeyEntry(PublicKey key, Date creationDate, Properties properties)

Method Summary

static PublicKeyEntry
decode(DataInputStream in)
protected void
encodePayload()
This method is called of subclasses when the payload data needs to be created.
PublicKey
getKey()
Returns the public key.

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:
6

Constructor Details

PublicKeyEntry

public PublicKeyEntry(PublicKey key,
                      Date creationDate,
                      Properties properties)

Method Details

decode

public static PublicKeyEntry decode(DataInputStream in)
            throws IOException

encodePayload

protected void encodePayload()
            throws IOException
This method is called of subclasses when the payload data needs to be created.
Overrides:
encodePayload in interface Entry

getKey

public PublicKey getKey()
Returns the public key.
Returns:
The public key.

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