demo
Class CriticalObjectDemo

java.lang.Object
  |
  +--demo.CriticalObjectDemo
All Implemented Interfaces:
Serializable

public class CriticalObjectDemo
extends Object
implements Serializable

This class demonstrates the usage of class CriticalData.

Version:
File Revision 14
See Also:
Serialized Form

Constructor Summary
CriticalObjectDemo()
          A default constructor which initializes the variables.
 
Method Summary
 void destroyCriticalData()
          This method is called from class CriticalObject after encrypting the content and it is responsible for destroying all its critical data.
static void main(String[] argv)
          The main method of the demo.
static void start()
           
 String toString()
          Returns a string that represents the content of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CriticalObjectDemo

public CriticalObjectDemo()
A default constructor which initializes the variables.
Method Detail

destroyCriticalData

public void destroyCriticalData()
This method is called from class CriticalObject after encrypting the content and it is responsible for destroying all its critical data. This demo for example first sets the content of the byte array to zero and then sets the reference to it to null. Anothe variable x is also set to 0.

toString

public String toString()
Returns a string that represents the content of this object.
Overrides:
toString in class Object

start

public static void start()

main

public static void main(String[] argv)
                 throws IOException
The main method of the demo. First a new CriticalObjectDemo object is created and secured through a CriticalObject using the specified key.

Then the object is retrieved using the same key.


This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK