Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.crypto.keyring
Class PrivateKeyEntry  view PrivateKeyEntry download PrivateKeyEntry.java

java.lang.Object
  extended bygnu.javax.crypto.keyring.Entry
      extended bygnu.javax.crypto.keyring.PrimitiveEntry
          extended bygnu.javax.crypto.keyring.PrivateKeyEntry

public final class PrivateKeyEntry
extends PrimitiveEntry

An immutable class representing a private or secret key entry.


Field Summary
private  java.security.Key key
          The key.
static int TYPE
           
 
Fields inherited from class gnu.javax.crypto.keyring.PrimitiveEntry
creationDate
 
Fields inherited from class gnu.javax.crypto.keyring.Entry
payload, properties, type
 
Constructor Summary
private PrivateKeyEntry()
           
  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.javax.crypto.keyring.PrimitiveEntry
equals, getAlias, getCreationDate, makeCreationDate
 
Methods inherited from class gnu.javax.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

TYPE

public static final int TYPE
See Also:
Constant Field Values

key

private java.security.Key key
The key.

Constructor Detail

PrivateKeyEntry

public PrivateKeyEntry(java.security.Key key,
                       java.util.Date creationDate,
                       Properties properties)

Creates a new key entry.


PrivateKeyEntry

private PrivateKeyEntry()
Method Detail

decode

public static PrivateKeyEntry decode(java.io.DataInputStream in)
                              throws java.io.IOException

getKey

public java.security.Key getKey()

Returns this entry's key.


encodePayload

protected void encodePayload()
                      throws java.io.IOException
Description copied from class: Entry
This method is called of subclasses when the payload data needs to be created.

Specified by:
encodePayload in class Entry