inescID.crypto
Class FileEncryptionTool

java.lang.Object
  extended byinescID.util.FileTool
      extended byinescID.crypto.FileEncryptionTool

public class FileEncryptionTool
extends FileTool


Field Summary
(package private)  EncryptionTool encrypt_tool
           
 
Fields inherited from class inescID.util.FileTool
 
Constructor Summary
FileEncryptionTool()
           
 
Method Summary
 java.lang.Object readObjectFromFile(java.lang.String file, java.security.interfaces.RSAKey key)
           
 java.lang.Object readObjectFromFile(java.lang.String file, javax.crypto.SecretKey key)
           
 void writeObject2File(java.lang.String file, java.lang.Object obj, java.security.interfaces.RSAKey key)
           
 void writeObject2File(java.lang.String file, java.lang.Object obj, javax.crypto.SecretKey key)
           
 
Methods inherited from class inescID.util.FileTool
closeReadFile, closeWriteFile, copy, finalize, initReadLine, initWrite, readLine, readObjectFromFile, readTextFile, write, writeLine, writeObject2File
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encrypt_tool

EncryptionTool encrypt_tool
Constructor Detail

FileEncryptionTool

public FileEncryptionTool()
                   throws java.lang.Exception
Method Detail

writeObject2File

public void writeObject2File(java.lang.String file,
                             java.lang.Object obj,
                             javax.crypto.SecretKey key)
                      throws java.lang.Exception
Throws:
java.lang.Exception

writeObject2File

public void writeObject2File(java.lang.String file,
                             java.lang.Object obj,
                             java.security.interfaces.RSAKey key)
                      throws java.lang.Exception
Throws:
java.lang.Exception

readObjectFromFile

public java.lang.Object readObjectFromFile(java.lang.String file,
                                           javax.crypto.SecretKey key)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

readObjectFromFile

public java.lang.Object readObjectFromFile(java.lang.String file,
                                           java.security.interfaces.RSAKey key)
                                    throws java.lang.Exception
Throws:
java.lang.Exception