org.jboss.crypto
Class CipherSocket

java.lang.Object
  extended by java.net.Socket
      extended by org.jboss.crypto.CipherSocket

public class CipherSocket
extends Socket

Author:
Scott.Stark@jboss.org

Constructor Summary
CipherSocket(Socket delegate, String algorithm, SecretKey key)
           
CipherSocket(String host, int port, String algorithm, SecretKey key)
          Creates a new instance of CipherSocket
 
Method Summary
 InputStream getInputStream()
           
 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, setPerformancePreferences, 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(String host,
                    int port,
                    String algorithm,
                    SecretKey key)
             throws IOException
Creates a new instance of CipherSocket

Throws:
IOException

CipherSocket

public CipherSocket(Socket delegate,
                    String algorithm,
                    SecretKey key)
             throws IOException
Throws:
IOException
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Overrides:
getInputStream in class Socket
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Overrides:
getOutputStream in class Socket
Throws:
IOException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.