ami.security
Class AMISecureOutputStream

java.lang.Object
  |
  +--ami.security.AMISecureOutputStream

class AMISecureOutputStream
extends Object

Provides a secure stream able to work with:

Version:
1.0
Author:
Bertrand Florat

Field Summary
private  ByteArrayOutputStream baos
           
private  ObjectOutputStream oosExterne
           
private  ObjectOutputStream oosInterne
           
private  int[] P
           
private  int[] S1
           
private  int[] S2
           
private  int[] S3
           
private  int[] sKey
           
 
Constructor Summary
AMISecureOutputStream(OutputStream ops, byte[] key)
           
 
Method Summary
 void close()
           
 void flush()
           
 void reset()
           
 void writeObject(Object o)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

P

private int[] P

sKey

private int[] sKey

S1

private int[] S1

S2

private int[] S2

S3

private int[] S3

oosInterne

private ObjectOutputStream oosInterne

oosExterne

private ObjectOutputStream oosExterne

baos

private ByteArrayOutputStream baos
Constructor Detail

AMISecureOutputStream

public AMISecureOutputStream(OutputStream ops,
                             byte[] key)
                      throws Exception
Method Detail

writeObject

public void writeObject(Object o)
                 throws Exception

flush

public void flush()
           throws Exception

reset

public void reset()
           throws Exception

close

public void close()
           throws Exception