Class BcTLSIO

java.lang.Object
tigase.extras.bcstarttls.BcTLSIO
All Implemented Interfaces:
tigase.io.IOInterface, tigase.io.TLSIOIfc

public class BcTLSIO extends Object implements tigase.io.IOInterface, tigase.io.TLSIOIfc
  • Field Details

  • Constructor Details

    • BcTLSIO

      public BcTLSIO(tigase.io.CertificateContainerIfc certificateContainer, tigase.io.TLSEventHandler eventHandler, tigase.io.IOInterface ioi, String hostname, ByteOrder order, boolean wantClientAuth, boolean needClientAuth, TrustManager[] x509TrustManagers) throws IOException
      Throws:
      IOException
  • Method Details

    • bytesRead

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

      public boolean checkCapabilities(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 IOException
      Specified by:
      getInputPacketSize in interface tigase.io.IOInterface
      Throws:
      IOException
    • getSocketChannel

      public 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(String addr)
      Specified by:
      isRemoteAddress in interface tigase.io.IOInterface
    • processHandshake

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

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

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

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

      public String toString()
      Overrides:
      toString in class 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(ByteBuffer buff) throws IOException
      Specified by:
      write in interface tigase.io.IOInterface
      Throws:
      IOException