gnu.crypto.keyring

Class PrivateKeyEntry

public final class PrivateKeyEntry extends PrimitiveEntry

An immutable class representing a private or secret key entry.

Version: $Revision: 1.7 $

Field Summary
static intTYPE
Constructor Summary
PrivateKeyEntry(Key key, Date creationDate, Properties properties)

Creates a new key entry.

Method Summary
static PrivateKeyEntrydecode(DataInputStream in)
protected voidencodePayload()
KeygetKey()

Returns this entry's key.

Field Detail

TYPE

public static final int TYPE

Constructor Detail

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.

Throws: IllegalArgumentException If any parameter is null.

Method Detail

decode

public static PrivateKeyEntry decode(DataInputStream in)

encodePayload

protected void encodePayload()

getKey

public Key getKey()

Returns this entry's key.

Returns: The key.

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