org.dmonix.cipher
Class DMCipherOutputStreamPBE

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byorg.dmonix.cipher.DMCipherOutputStream
              extended byorg.dmonix.cipher.DMCipherOutputStreamPBE

public class DMCipherOutputStreamPBE
extends DMCipherOutputStream

A ciphered output stream that uses the PBEWithMD5AndDES algorithm.

Copyright: Copyright (c) 2003

Company: dmonix.org

Version:
1.0
Author:
Peter Nerg

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
DMCipherOutputStreamPBE(java.io.OutputStream ostream, char[] key)
          A ciphered output stream that uses the PBEWithMD5AndDES algorithm.
DMCipherOutputStreamPBE(java.io.OutputStream ostream, char[] key, byte[] salt, int iterationCount)
          A ciphered output stream that uses the PBEWithMD5AndDES algorithm.
 
Methods inherited from class org.dmonix.cipher.DMCipherOutputStream
clone, close, flush, initCipher, initCipher, write, write, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMCipherOutputStreamPBE

public DMCipherOutputStreamPBE(java.io.OutputStream ostream,
                               char[] key)
                        throws java.security.NoSuchAlgorithmException,
                               java.security.InvalidKeyException,
                               java.security.spec.InvalidKeySpecException,
                               javax.crypto.NoSuchPaddingException,
                               java.security.InvalidAlgorithmParameterException
A ciphered output stream that uses the PBEWithMD5AndDES algorithm.

Parameters:
ostream - The outputstream to cipher
key - The key
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.spec.InvalidKeySpecException
javax.crypto.NoSuchPaddingException
java.security.InvalidAlgorithmParameterException

DMCipherOutputStreamPBE

public DMCipherOutputStreamPBE(java.io.OutputStream ostream,
                               char[] key,
                               byte[] salt,
                               int iterationCount)
                        throws java.security.NoSuchAlgorithmException,
                               java.security.InvalidKeyException,
                               java.security.spec.InvalidKeySpecException,
                               javax.crypto.NoSuchPaddingException,
                               java.security.InvalidAlgorithmParameterException
A ciphered output stream that uses the PBEWithMD5AndDES algorithm.

Parameters:
ostream - The outputstream to cipher
key - The key
salt - The salt for the algorithm
iterationCount - The iteration count for the algorithm
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.spec.InvalidKeySpecException
javax.crypto.NoSuchPaddingException
java.security.InvalidAlgorithmParameterException


Copyright © 1998-2005 dmonix.org Peter Nerg, All Rights Reserved.