com.caucho.hessian.security
Class X509Encryption.EncryptOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.caucho.hessian.security.X509Encryption.EncryptOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
X509Encryption

 class X509Encryption.EncryptOutputStream
extends java.io.OutputStream


Field Summary
private  java.io.OutputStream _bodyOut
           
private  javax.crypto.Cipher _cipher
           
private  javax.crypto.CipherOutputStream _cipherOut
           
private  Hessian2Output _out
           
 
Constructor Summary
X509Encryption.EncryptOutputStream(Hessian2Output out)
           
 
Method Summary
 void close()
           
 void write(byte[] buffer, int offset, int length)
           
 void write(int ch)
           
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_out

private Hessian2Output _out

_cipher

private javax.crypto.Cipher _cipher

_bodyOut

private java.io.OutputStream _bodyOut

_cipherOut

private javax.crypto.CipherOutputStream _cipherOut
Constructor Detail

X509Encryption.EncryptOutputStream

X509Encryption.EncryptOutputStream(Hessian2Output out)
                             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

write

public void write(int ch)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] buffer,
                  int offset,
                  int length)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
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.OutputStream
Throws:
java.io.IOException