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