base.jdbs.cryptography.asymmetric
Class PrivateKey

java.lang.Object
  extended by base.jdbs.cryptography.Key
      extended by base.jdbs.cryptography.asymmetric.PrivateKey

public class PrivateKey
extends Key

This class is a wrapper for the java.security.PrivateKey and adds facilities to store such wrapped object.

Author:
Guido Angelo Ingenito

Constructor Summary
PrivateKey(java.security.PrivateKey value)
          The default PrivateKey constructor.
 
Method Summary
 java.security.PrivateKey getValue()
           
 void retrieve(java.io.File file)
          This method offers the facility to retrieve the keys'content from the file system.
 void store(java.io.File file)
          This method offers the facility to store the keys'content in the file system.
 
Methods inherited from class base.jdbs.cryptography.Key
setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrivateKey

public PrivateKey(java.security.PrivateKey value)
The default PrivateKey constructor.

Parameters:
value - The java.security.PrivateKey associated with this instance.
Method Detail

getValue

public java.security.PrivateKey getValue()
Overrides:
getValue in class Key
Returns:
Returns the value.

store

public void store(java.io.File file)
Description copied from class: Key
This method offers the facility to store the keys'content in the file system.

Specified by:
store in class Key
Parameters:
file - The file where the keys'content must be stored.

retrieve

public void retrieve(java.io.File file)
Description copied from class: Key
This method offers the facility to retrieve the keys'content from the file system.

Specified by:
retrieve in class Key
Parameters:
file - The file from wich the keys'content must be retrieved.


Copyright © 2006 SF.net. All Rights Reserved.