Package tigase.io

Class TLSIO

    • Constructor Detail

      • TLSIO

        public TLSIO​(IOInterface ioi,
                     TLSWrapper wrapper,
                     java.nio.ByteOrder order)
              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • checkCapabilities

        public boolean checkCapabilities​(java.lang.String caps)
        Specified by:
        checkCapabilities in interface IOInterface
      • getInputPacketSize

        public int getInputPacketSize()
                               throws java.io.IOException
        Specified by:
        getInputPacketSize in interface IOInterface
        Throws:
        java.io.IOException
      • getSocketChannel

        public java.nio.channels.SocketChannel getSocketChannel()
        Specified by:
        getSocketChannel in interface IOInterface
      • isRemoteAddress

        public boolean isRemoteAddress​(java.lang.String addr)
        Specified by:
        isRemoteAddress in interface IOInterface
      • read

        public java.nio.ByteBuffer read​(java.nio.ByteBuffer buff)
                                 throws java.io.IOException
        Specified by:
        read in interface IOInterface
        Throws:
        java.io.IOException
      • stop

        public void stop()
                  throws java.io.IOException
        Specified by:
        stop in interface IOInterface
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • write

        public int write​(java.nio.ByteBuffer buff)
                  throws java.io.IOException
        Specified by:
        write in interface IOInterface
        Throws:
        java.io.IOException
      • setLogId

        public void setLogId​(java.lang.String logId)
        Specified by:
        setLogId in interface IOInterface
      • processHandshake

        public void processHandshake​(byte[] data)
                              throws java.io.IOException
        Specified by:
        processHandshake in interface TLSIOIfc
        Throws:
        java.io.IOException