Klasse CryptoStreamFactory

java.lang.Object
org.apache.fulcrum.yaafi.framework.crypto.CryptoStreamFactory

public class CryptoStreamFactory extends Object
Factory class to get a decrypting input stream for reading configuration files. The implementation uses dynamic class loading to make decryption an optional feature which is highly desirable when avoiding the ECCN export code problems.
Autor:
Siegfried Goeschl
  • Konstruktordetails

    • CryptoStreamFactory

      public CryptoStreamFactory()
  • Methodendetails

    • getDecryptingInputStream

      public static InputStream getDecryptingInputStream(InputStream is, String isEncrypted) throws Exception
      Create a (potentially) decrypting input stream using the default password.
      Parameter:
      is - the input stream to be decrypted
      isEncrypted - the encryption mode (true|false|auto)
      Gibt zurück:
      a decrypting input stream
      Löst aus:
      Exception - reading the input stream failed