ostore.client
Class ClientCryptModule

java.lang.Object
  |
  +--ostore.client.ClientCryptModule

public class ClientCryptModule
extends Object

Version:
$Id: ClientCryptModule.java,v 1.7 2003/08/27 20:36:57 eaton Exp $
Author:
Patrick R. Eaton, Jeff Pang

Constructor Summary
ClientCryptModule()
           
 
Method Summary
 byte[] decrypt(SecureHash guid, byte[] ciphertext)
           
 byte[] encrypt(SecureHash guid, byte[] plaintext)
           
static ClientCryptModule getInstance()
           
static void main(String[] args)
           
 void setKey(SecureHash guid, Key key)
           
 void unsetKey(SecureHash guid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCryptModule

public ClientCryptModule()
Method Detail

getInstance

public static ClientCryptModule getInstance()

setKey

public void setKey(SecureHash guid,
                   Key key)

unsetKey

public void unsetKey(SecureHash guid)

encrypt

public byte[] encrypt(SecureHash guid,
                      byte[] plaintext)

decrypt

public byte[] decrypt(SecureHash guid,
                      byte[] ciphertext)

main

public static void main(String[] args)
                 throws Exception
Exception