Package tigase.extras.bcstarttls
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
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbytesRead()booleancheckCapabilities(String caps)longgetBuffOverflow(boolean reset)longgetBytesReceived(boolean reset)longgetBytesSent(boolean reset)intgetInputPacketSize()SocketChannelgetSocketChannel()voidgetStatistics(tigase.stats.StatisticsList list, boolean reset)longgetTotalBuffOverflow()longgetTotalBytesReceived()longgetTotalBytesSent()booleanisConnected()booleanisRemoteAddress(String addr)voidprocessHandshake(byte[] data)ByteBufferread(ByteBuffer buff)voidsetLogId(String logId)voidstop()StringtoString()booleanwaitingToSend()intwaitingToSendSize()intwrite(ByteBuffer buff)
-
-
-
Field Detail
-
TLS_CAPS
public static final String TLS_CAPS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BcTLSIO
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- Throws:
IOException
-
-
Method Detail
-
bytesRead
public int bytesRead()
- Specified by:
bytesReadin interfacetigase.io.IOInterface
-
checkCapabilities
public boolean checkCapabilities(String caps)
- 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
public int getInputPacketSize() throws IOException- Specified by:
getInputPacketSizein interfacetigase.io.IOInterface- Throws:
IOException
-
getSocketChannel
public SocketChannel 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
public boolean isRemoteAddress(String addr)
- Specified by:
isRemoteAddressin interfacetigase.io.IOInterface
-
read
public ByteBuffer read(ByteBuffer buff) throws IOException
- Specified by:
readin interfacetigase.io.IOInterface- Throws:
IOException
-
setLogId
public void setLogId(String logId)
- Specified by:
setLogIdin interfacetigase.io.IOInterface
-
stop
public void stop() throws IOException- Specified by:
stopin interfacetigase.io.IOInterface- Throws:
IOException
-
waitingToSend
public boolean waitingToSend()
- Specified by:
waitingToSendin interfacetigase.io.IOInterface
-
waitingToSendSize
public int waitingToSendSize()
- Specified by:
waitingToSendSizein interfacetigase.io.IOInterface
-
write
public int write(ByteBuffer buff) throws IOException
- Specified by:
writein interfacetigase.io.IOInterface- Throws:
IOException
-
processHandshake
public void processHandshake(byte[] data) throws IOException- Specified by:
processHandshakein interfacetigase.io.TLSIOIfc- Throws:
IOException
-
-