Class BcTLSIO

  • All Implemented Interfaces:
    tigase.io.IOInterface, tigase.io.TLSIOIfc

    public class BcTLSIO
    extends java.lang.Object
    implements tigase.io.IOInterface, tigase.io.TLSIOIfc
    • Constructor Detail

      • BcTLSIO

        public BcTLSIO​(tigase.io.CertificateContainerIfc certificateContainer,
                       tigase.io.TLSEventHandler eventHandler,
                       tigase.io.IOInterface ioi,
                       java.lang.String hostname,
                       java.nio.ByteOrder order,
                       boolean wantClientAuth,
                       boolean needClientAuth,
                       java.lang.String[] enabledCiphers,
                       java.lang.String[] enabledProtocols,
                       javax.net.ssl.TrustManager[] x509TrustManagers)
                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • bytesRead

        public int bytesRead()
        Specified by:
        bytesRead in interface tigase.io.IOInterface
      • checkCapabilities

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

        public long getBuffOverflow​(boolean reset)
        Specified by:
        getBuffOverflow in interface tigase.io.IOInterface
      • getBytesReceived

        public long getBytesReceived​(boolean reset)
        Specified by:
        getBytesReceived in interface tigase.io.IOInterface
      • getBytesSent

        public long getBytesSent​(boolean reset)
        Specified by:
        getBytesSent in interface tigase.io.IOInterface
      • getInputPacketSize

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

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

        public void getStatistics​(tigase.stats.StatisticsList list,
                                  boolean reset)
        Specified by:
        getStatistics in interface tigase.io.IOInterface
      • getTotalBuffOverflow

        public long getTotalBuffOverflow()
        Specified by:
        getTotalBuffOverflow in interface tigase.io.IOInterface
      • getTotalBytesReceived

        public long getTotalBytesReceived()
        Specified by:
        getTotalBytesReceived in interface tigase.io.IOInterface
      • getTotalBytesSent

        public long getTotalBytesSent()
        Specified by:
        getTotalBytesSent in interface tigase.io.IOInterface
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface tigase.io.IOInterface
      • isRemoteAddress

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

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

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

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

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

        public boolean waitingToSend()
        Specified by:
        waitingToSend in interface tigase.io.IOInterface
      • waitingToSendSize

        public int waitingToSendSize()
        Specified by:
        waitingToSendSize in interface tigase.io.IOInterface
      • write

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

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