Klasse CryptoStreamFactory
java.lang.Object
org.apache.fulcrum.yaafi.framework.crypto.CryptoStreamFactory
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
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic InputStream
getDecryptingInputStream
(InputStream is, String isEncrypted) Create a (potentially) decrypting input stream using the default password.
-
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 decryptedisEncrypted
- the encryption mode (true|false|auto)- Gibt zurück:
- a decrypting input stream
- Löst aus:
Exception
- reading the input stream failed
-