ami.security
Class AMISecureInputStream

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

public class AMISecureInputStream
extends Object

Provides a secure stream able to work with:

Version:
1.0
Author:
Bertrand Florat

Field Summary
private  ByteArrayInputStream bais
           
private  BufferedReader brExterne
           
private  byte[] buffer
           
private  byte[] clear
           
private  ObjectInputStream oisExterne
           
private  ObjectInputStream oisInterne
           
private  Object oResu
           
private  int[] P
           
private  int[] S1
           
private  int[] S2
           
private  int[] S3
           
private  int[] sKey
           
 
Constructor Summary
AMISecureInputStream(InputStream is, byte[] key)
           
AMISecureInputStream(String fFile, byte[] key)
           
 
Method Summary
 void close()
           
 byte[] read(int iLength)
          Used to decode a character stream
 Object readObject()
          Used to decode and deserialize
 
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

clear

private byte[] clear

buffer

private byte[] buffer

oResu

private Object oResu

oisExterne

private ObjectInputStream oisExterne

oisInterne

private ObjectInputStream oisInterne

bais

private ByteArrayInputStream bais

brExterne

private BufferedReader brExterne
Constructor Detail

AMISecureInputStream

public AMISecureInputStream(InputStream is,
                            byte[] key)
                     throws Exception

AMISecureInputStream

public AMISecureInputStream(String fFile,
                            byte[] key)
                     throws Exception
Method Detail

readObject

public Object readObject()
                  throws Exception
Used to decode and deserialize

read

public byte[] read(int iLength)
            throws Exception
Used to decode a character stream

close

public void close()
           throws Exception