base.jdbs.cryptography.asymmetric
Class PublicKey

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

public class PublicKey
extends Key

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

Author:
Guido Angelo Ingenito

Constructor Summary
PublicKey(java.security.PublicKey value)
          The default PublicKey constructor.
 
Method Summary
 java.security.PublicKey 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

PublicKey

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

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

getValue

public java.security.PublicKey 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.