|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object extended bygnu.crypto.keyring.Entry extended bygnu.crypto.keyring.PrimitiveEntry extended bygnu.crypto.keyring.PrivateKeyEntry
An immutable class representing a private or secret key entry.
| 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(java.security.Key key,
java.util.Date creationDate,
Properties properties)
Creates a new key entry. |
|
| Method Summary | |
static PrivateKeyEntry |
decode(java.io.DataInputStream in)
|
protected void |
encodePayload()
This method is called of subclasses when the payload data needs to be created. |
java.security.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, getPayload, getProperties |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TYPE
| Constructor Detail |
public PrivateKeyEntry(java.security.Key key, java.util.Date creationDate, Properties properties)
Creates a new key entry.
key - The key.creationDate - The entry creation date.properties - The entry properties.
java.lang.IllegalArgumentException - If any parameter is null.| Method Detail |
public static PrivateKeyEntry decode(java.io.DataInputStream in) throws java.io.IOException
java.io.IOExceptionpublic java.security.Key getKey()
Returns this entry's key.
protected void encodePayload() throws java.io.IOException
Entry
encodePayload in class Entryjava.io.IOException - If an encoding error occurs.
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||