org.wiztools.wizcrypt
Class Encrypt

java.lang.Object
  extended by org.wiztools.wizcrypt.Encrypt
All Implemented Interfaces:
IProcess

public class Encrypt
extends java.lang.Object
implements IProcess

Class to do the encryption using the WizCrypt naming convention (*.wiz).


Constructor Summary
Encrypt()
           
 
Method Summary
 void init(java.lang.String keyStr)
           
 void process(java.io.File file, boolean forceOverwrite)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encrypt

public Encrypt()
Method Detail

init

public void init(java.lang.String keyStr)
          throws java.security.NoSuchAlgorithmException,
                 java.io.UnsupportedEncodingException,
                 java.security.InvalidKeyException,
                 javax.crypto.NoSuchPaddingException
Specified by:
init in interface IProcess
Throws:
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
java.security.InvalidKeyException
javax.crypto.NoSuchPaddingException

process

public void process(java.io.File file,
                    boolean forceOverwrite)
             throws java.io.FileNotFoundException,
                    DestinationFileExistsException,
                    java.io.IOException
Specified by:
process in interface IProcess
Throws:
java.io.FileNotFoundException
DestinationFileExistsException
java.io.IOException


Copyright © 2007. All Rights Reserved.