com.ibm.di.security
Class EncryptedWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.BufferedWriter
          extended by com.ibm.di.security.EncryptedWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class EncryptedWriter
extends BufferedWriter


Field Summary
static String SIGNATURE
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
EncryptedWriter(OutputStream stream)
           
EncryptedWriter(Writer stream)
           
EncryptedWriter(Writer writer, OutputStream stream)
           
 
Method Summary
 void close()
           
 String getAlgorithm()
           
 OutputStream getOutputStream()
           
 void newLine()
           
 void setAlgorithm(String cipherAlgorithm)
           
 void setKey(SecurityCrypto key)
           
 void useKey(String keyPath)
           
 void write(String str)
           
 
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
 

Field Detail

SIGNATURE

public static final String SIGNATURE
See Also:
Constant Field Values
Constructor Detail

EncryptedWriter

public EncryptedWriter(OutputStream stream)

EncryptedWriter

public EncryptedWriter(Writer stream)

EncryptedWriter

public EncryptedWriter(Writer writer,
                       OutputStream stream)
Method Detail

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