org.bouncycastle.crypto.tls
Interface TlsClient
- All Known Implementing Classes:
- DefaultTlsClient, LegacyTlsClient, PSKTlsClient, SRPTlsClient
public interface TlsClient
init
void init(TlsClientContext context)
getClientVersion
ProtocolVersion getClientVersion()
getCipherSuites
int[] getCipherSuites()
getCompressionMethods
short[] getCompressionMethods()
getClientExtensions
java.util.Hashtable getClientExtensions()
throws java.io.IOException
- Throws:
java.io.IOException
notifyServerVersion
void notifyServerVersion(ProtocolVersion selectedVersion)
throws java.io.IOException
- Throws:
java.io.IOException
notifySessionID
void notifySessionID(byte[] sessionID)
notifySelectedCipherSuite
void notifySelectedCipherSuite(int selectedCipherSuite)
notifySelectedCompressionMethod
void notifySelectedCompressionMethod(short selectedCompressionMethod)
notifySecureRenegotiation
void notifySecureRenegotiation(boolean secureNegotiation)
throws java.io.IOException
- Throws:
java.io.IOException
processServerExtensions
void processServerExtensions(java.util.Hashtable serverExtensions)
getKeyExchange
TlsKeyExchange getKeyExchange()
throws java.io.IOException
- Throws:
java.io.IOException
getAuthentication
TlsAuthentication getAuthentication()
throws java.io.IOException
- Throws:
java.io.IOException
getCompression
TlsCompression getCompression()
throws java.io.IOException
- Throws:
java.io.IOException
getCipher
TlsCipher getCipher()
throws java.io.IOException
- Throws:
java.io.IOException