Package tigase.io
Interface TLSWrapper
-
- All Known Implementing Classes:
JcaTLSWrapper
public interface TLSWrapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intbytesConsumed()voidclose()intgetAppBuffSize()CertCheckResultgetCertificateStatus(boolean revocationEnabled, SSLContextContainerIfc sslContextContainer)SSLEngineResult.HandshakeStatusgetHandshakeStatus()Certificate[]getLocalCertificates()intgetNetBuffSize()intgetPacketBuffSize()Certificate[]getPeerCertificates()TLSStatusgetStatus()byte[]getTlsUniqueBindingData()booleanisClientMode()booleanisNeedClientAuth()voidsetDebugId(String id)ByteBufferunwrap(ByteBuffer net, ByteBuffer app)booleanwantClientAuth()voidwrap(ByteBuffer app, ByteBuffer net)
-
-
-
Method Detail
-
bytesConsumed
int bytesConsumed()
-
close
void close() throws SSLException- Throws:
SSLException
-
getAppBuffSize
int getAppBuffSize()
-
getCertificateStatus
CertCheckResult getCertificateStatus(boolean revocationEnabled, SSLContextContainerIfc sslContextContainer)
-
getHandshakeStatus
SSLEngineResult.HandshakeStatus getHandshakeStatus()
-
getLocalCertificates
Certificate[] getLocalCertificates()
-
getNetBuffSize
int getNetBuffSize()
-
getPacketBuffSize
int getPacketBuffSize()
-
getPeerCertificates
Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
- Throws:
SSLPeerUnverifiedException
-
getStatus
TLSStatus getStatus()
-
getTlsUniqueBindingData
byte[] getTlsUniqueBindingData()
-
isClientMode
boolean isClientMode()
-
isNeedClientAuth
boolean isNeedClientAuth()
-
setDebugId
void setDebugId(String id)
-
unwrap
ByteBuffer unwrap(ByteBuffer net, ByteBuffer app) throws SSLException
- Throws:
SSLException
-
wantClientAuth
boolean wantClientAuth()
-
wrap
void wrap(ByteBuffer app, ByteBuffer net) throws SSLException
- Throws:
SSLException
-
-