gnu.crypto.keyring

Class PrivateKeyEntry


public final class PrivateKeyEntry
extends PrimitiveEntry

An immutable class representing a private or secret key entry.

Version:
$Revision: 1.5 $

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

PrivateKeyEntry(Key key, Date creationDate, Properties properties)
Creates a new key entry.

Method Summary

static PrivateKeyEntry
decode(DataInputStream in)
protected void
encodePayload()
This method is called of subclasses when the payload data needs to be created.
Key
getKey()
Returns this entry's 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:
7

Constructor Details

PrivateKeyEntry

public PrivateKeyEntry(Key key,
                       Date creationDate,
                       Properties properties)
Creates a new key entry.

Parameters:
key - The key.
creationDate - The entry creation date.
properties - The entry properties.

Method Details

decode

public static PrivateKeyEntry 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 Key getKey()
Returns this entry's key.

Returns:
The key.


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