gnu.crypto.keyring
public final class PrivateKeyEntry extends PrimitiveEntry
An immutable class representing a private or secret key entry.
Version: $Revision: 1.7 $
| Field Summary | |
|---|---|
| static int | 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() |
| Key | getKey() Returns this entry's key. |
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.
Returns this entry's key.
Returns: The key.