com.jp.protection.pub
Class FileSecretStorage.EncryptOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by com.jp.protection.pub.FileSecretStorage.EncryptOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
FileSecretStorage

protected static class FileSecretStorage.EncryptOutputStream
extends java.io.FilterOutputStream


Field Summary
protected  java.io.ByteArrayOutputStream fByteArrayOutputStream
           
protected  javax.crypto.Cipher fCipher
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
FileSecretStorage.EncryptOutputStream(java.io.OutputStream anOutputStream, java.lang.String aPassword)
           
 
Method Summary
 void close()
           
 java.io.OutputStream getOutputStream()
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fByteArrayOutputStream

protected java.io.ByteArrayOutputStream fByteArrayOutputStream

fCipher

protected javax.crypto.Cipher fCipher
Constructor Detail

FileSecretStorage.EncryptOutputStream

public FileSecretStorage.EncryptOutputStream(java.io.OutputStream anOutputStream,
                                             java.lang.String aPassword)
Method Detail

getOutputStream

public java.io.OutputStream getOutputStream()

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterOutputStream
Throws:
java.io.IOException