org.dmonix.cipher
Class DMCipherInputStreamPBE

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.dmonix.cipher.DMCipherInputStream
              extended byorg.dmonix.cipher.DMCipherInputStreamPBE

public class DMCipherInputStreamPBE
extends DMCipherInputStream

A ciphered input stream that uses the PBEWithMD5AndDES algorithm.

Copyright: Copyright (c) 2004

Company: dmonix.org

Version:
1.0
Author:
Peter Nerg

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
DMCipherInputStreamPBE(java.io.InputStream istream, char[] key)
          A ciphered input stream that uses the PBEWithMD5AndDES algorithm.
DMCipherInputStreamPBE(java.io.InputStream istream, char[] key, byte[] salt, int iterationCount)
          A ciphered input stream that uses the PBEWithMD5AndDES algorithm.
 
Methods inherited from class org.dmonix.cipher.DMCipherInputStream
clone, close, initCipher, initCipher, read, read, read
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMCipherInputStreamPBE

public DMCipherInputStreamPBE(java.io.InputStream istream,
                              char[] key)
                       throws java.security.NoSuchAlgorithmException,
                              java.security.InvalidKeyException,
                              java.security.spec.InvalidKeySpecException,
                              javax.crypto.NoSuchPaddingException,
                              java.security.InvalidAlgorithmParameterException
A ciphered input stream that uses the PBEWithMD5AndDES algorithm.

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

DMCipherInputStreamPBE

public DMCipherInputStreamPBE(java.io.InputStream istream,
                              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 input stream that uses the PBEWithMD5AndDES algorithm.

Parameters:
istream - 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.