public class BcTLSIO extends Object implements tigase.io.IOInterface, tigase.io.TLSIOIfc
| Constructor and Description |
|---|
BcTLSIO(tigase.io.CertificateContainerIfc certificateContainer,
tigase.io.TLSEventHandler eventHandler,
tigase.io.IOInterface ioi,
String hostname,
ByteOrder order,
boolean wantClientAuth,
boolean needClientAuth,
String[] enabledCiphers,
String[] enabledProtocols,
TrustManager[] x509TrustManagers) |
| Modifier and Type | Method and Description |
|---|---|
int |
bytesRead() |
boolean |
checkCapabilities(String caps) |
long |
getBuffOverflow(boolean reset) |
long |
getBytesReceived(boolean reset) |
long |
getBytesSent(boolean reset) |
int |
getInputPacketSize() |
SocketChannel |
getSocketChannel() |
void |
getStatistics(tigase.stats.StatisticsList list,
boolean reset) |
long |
getTotalBuffOverflow() |
long |
getTotalBytesReceived() |
long |
getTotalBytesSent() |
boolean |
isConnected() |
boolean |
isRemoteAddress(String addr) |
void |
processHandshake(byte[] data) |
ByteBuffer |
read(ByteBuffer buff) |
void |
setLogId(String logId) |
void |
stop() |
String |
toString() |
boolean |
waitingToSend() |
int |
waitingToSendSize() |
int |
write(ByteBuffer buff) |
public static final String TLS_CAPS
public BcTLSIO(tigase.io.CertificateContainerIfc certificateContainer,
tigase.io.TLSEventHandler eventHandler,
tigase.io.IOInterface ioi,
String hostname,
ByteOrder order,
boolean wantClientAuth,
boolean needClientAuth,
String[] enabledCiphers,
String[] enabledProtocols,
TrustManager[] x509TrustManagers)
throws IOException
IOExceptionpublic int bytesRead()
bytesRead in interface tigase.io.IOInterfacepublic boolean checkCapabilities(String caps)
checkCapabilities in interface tigase.io.IOInterfacepublic long getBuffOverflow(boolean reset)
getBuffOverflow in interface tigase.io.IOInterfacepublic long getBytesReceived(boolean reset)
getBytesReceived in interface tigase.io.IOInterfacepublic long getBytesSent(boolean reset)
getBytesSent in interface tigase.io.IOInterfacepublic int getInputPacketSize()
throws IOException
getInputPacketSize in interface tigase.io.IOInterfaceIOExceptionpublic SocketChannel getSocketChannel()
getSocketChannel in interface tigase.io.IOInterfacepublic void getStatistics(tigase.stats.StatisticsList list,
boolean reset)
getStatistics in interface tigase.io.IOInterfacepublic long getTotalBuffOverflow()
getTotalBuffOverflow in interface tigase.io.IOInterfacepublic long getTotalBytesReceived()
getTotalBytesReceived in interface tigase.io.IOInterfacepublic long getTotalBytesSent()
getTotalBytesSent in interface tigase.io.IOInterfacepublic boolean isConnected()
isConnected in interface tigase.io.IOInterfacepublic boolean isRemoteAddress(String addr)
isRemoteAddress in interface tigase.io.IOInterfacepublic ByteBuffer read(ByteBuffer buff) throws IOException
read in interface tigase.io.IOInterfaceIOExceptionpublic void setLogId(String logId)
setLogId in interface tigase.io.IOInterfacepublic void stop()
throws IOException
stop in interface tigase.io.IOInterfaceIOExceptionpublic boolean waitingToSend()
waitingToSend in interface tigase.io.IOInterfacepublic int waitingToSendSize()
waitingToSendSize in interface tigase.io.IOInterfacepublic int write(ByteBuffer buff) throws IOException
write in interface tigase.io.IOInterfaceIOExceptionpublic void processHandshake(byte[] data)
throws IOException
processHandshake in interface tigase.io.TLSIOIfcIOExceptionCopyright © 2007–2019 Tigase. All rights reserved.