jfileupload.transfer.client.util
Class PBE

java.lang.Object
  extended by jfileupload.transfer.client.util.PBE

public class PBE
extends java.lang.Object

PBE helper.


Constructor Summary
PBE(Conf conf)
           
 
Method Summary
 byte[] cipher(char[] password, byte[] buffer, int offset, int len)
          Cipher the byte buffer.
 byte[] decipher(char[] password, byte[] buffer, int offset, int len)
          Decipher the byte buffer.
 byte[] getBytes(java.lang.String list)
          Return byte array from a comma separated list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBE

public PBE(Conf conf)
Method Detail

cipher

public byte[] cipher(char[] password,
                     byte[] buffer,
                     int offset,
                     int len)
              throws java.lang.Exception
Cipher the byte buffer.

Parameters:
password -
buffer -
offset -
len -
Returns:
Throws:
java.lang.Exception

decipher

public byte[] decipher(char[] password,
                       byte[] buffer,
                       int offset,
                       int len)
                throws java.lang.Exception
Decipher the byte buffer.

Parameters:
password -
buffer -
offset -
len -
Returns:
Throws:
java.lang.Exception

getBytes

public byte[] getBytes(java.lang.String list)
Return byte array from a comma separated list.

Parameters:
list -
Returns: