org.jboss.crypto
Class CipherSocket

java.lang.Object
  extended byjava.net.Socket
      extended byorg.jboss.crypto.CipherSocket

public class CipherSocket
extends java.net.Socket


Constructor Summary
CipherSocket(java.net.Socket delegate, java.lang.String algorithm, javax.crypto.SecretKey key)
           
CipherSocket(java.lang.String host, int port, java.lang.String algorithm, javax.crypto.SecretKey key)
          Creates a new instance of CipherSocket
 
Method Summary
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 
Methods inherited from class java.net.Socket
bind, close, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CipherSocket

public CipherSocket(java.lang.String host,
                    int port,
                    java.lang.String algorithm,
                    javax.crypto.SecretKey key)
             throws java.io.IOException
Creates a new instance of CipherSocket


CipherSocket

public CipherSocket(java.net.Socket delegate,
                    java.lang.String algorithm,
                    javax.crypto.SecretKey key)
             throws java.io.IOException
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Throws:
java.io.IOException