Package tigase.extras.bcstarttls
Class BcTLSIO
java.lang.Object
tigase.extras.bcstarttls.BcTLSIO
- All Implemented Interfaces:
tigase.io.IOInterface,tigase.io.TLSIOIfc
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBcTLSIO(tigase.io.CertificateContainerIfc certificateContainer, tigase.io.TLSEventHandler eventHandler, tigase.io.IOInterface ioi, String hostname, ByteOrder order, boolean wantClientAuth, boolean needClientAuth, TrustManager[] x509TrustManagers) -
Method Summary
Modifier and TypeMethodDescriptionintbooleancheckCapabilities(String caps) longgetBuffOverflow(boolean reset) longgetBytesReceived(boolean reset) longgetBytesSent(boolean reset) intvoidgetStatistics(tigase.stats.StatisticsList list, boolean reset) longlonglongbooleanbooleanisRemoteAddress(String addr) voidprocessHandshake(byte[] data) read(ByteBuffer buff) voidvoidstop()toString()booleanintintwrite(ByteBuffer buff)
-
Field Details
-
TLS_CAPS
- See Also:
-
-
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:
bytesReadin interfacetigase.io.IOInterface
-
checkCapabilities
- Specified by:
checkCapabilitiesin interfacetigase.io.IOInterface
-
getBuffOverflow
public long getBuffOverflow(boolean reset) - Specified by:
getBuffOverflowin interfacetigase.io.IOInterface
-
getBytesReceived
public long getBytesReceived(boolean reset) - Specified by:
getBytesReceivedin interfacetigase.io.IOInterface
-
getBytesSent
public long getBytesSent(boolean reset) - Specified by:
getBytesSentin interfacetigase.io.IOInterface
-
getInputPacketSize
- Specified by:
getInputPacketSizein interfacetigase.io.IOInterface- Throws:
IOException
-
getSocketChannel
- Specified by:
getSocketChannelin interfacetigase.io.IOInterface
-
getStatistics
public void getStatistics(tigase.stats.StatisticsList list, boolean reset) - Specified by:
getStatisticsin interfacetigase.io.IOInterface
-
getTotalBuffOverflow
public long getTotalBuffOverflow()- Specified by:
getTotalBuffOverflowin interfacetigase.io.IOInterface
-
getTotalBytesReceived
public long getTotalBytesReceived()- Specified by:
getTotalBytesReceivedin interfacetigase.io.IOInterface
-
getTotalBytesSent
public long getTotalBytesSent()- Specified by:
getTotalBytesSentin interfacetigase.io.IOInterface
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfacetigase.io.IOInterface
-
isRemoteAddress
- Specified by:
isRemoteAddressin interfacetigase.io.IOInterface
-
processHandshake
- Specified by:
processHandshakein interfacetigase.io.TLSIOIfc- Throws:
IOException
-
read
- Specified by:
readin interfacetigase.io.IOInterface- Throws:
IOException
-
setLogId
- Specified by:
setLogIdin interfacetigase.io.IOInterface
-
stop
- Specified by:
stopin interfacetigase.io.IOInterface- Throws:
IOException
-
toString
-
waitingToSend
public boolean waitingToSend()- Specified by:
waitingToSendin interfacetigase.io.IOInterface
-
waitingToSendSize
public int waitingToSendSize()- Specified by:
waitingToSendSizein interfacetigase.io.IOInterface
-
write
- Specified by:
writein interfacetigase.io.IOInterface- Throws:
IOException
-