com.ibm.di.security
Class EncryptedWriter
java.lang.Object
java.io.Writer
java.io.BufferedWriter
com.ibm.di.security.EncryptedWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class EncryptedWriter
- extends BufferedWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIGNATURE
public static final String SIGNATURE
- See Also:
- Constant Field Values
EncryptedWriter
public EncryptedWriter(OutputStream stream)
EncryptedWriter
public EncryptedWriter(Writer stream)
EncryptedWriter
public EncryptedWriter(Writer writer,
OutputStream stream)
useKey
public void useKey(String keyPath)
throws Exception
- Throws:
Exception
setKey
public void setKey(SecurityCrypto key)
setAlgorithm
public void setAlgorithm(String cipherAlgorithm)
getAlgorithm
public String getAlgorithm()
write
public void write(String str)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
newLine
public void newLine()
throws IOException
- Overrides:
newLine
in class BufferedWriter
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class BufferedWriter
- Throws:
IOException