org.bouncycastle.crypto.tls
Interface TlsClient
- All Superinterfaces:
- TlsPeer
- All Known Implementing Classes:
- AbstractTlsClient, DefaultTlsClient, LegacyTlsClient, PSKTlsClient, SRPTlsClient
public interface TlsClient
- extends TlsPeer
init
void init(TlsClientContext context)
getClientHelloRecordLayerVersion
ProtocolVersion getClientHelloRecordLayerVersion()
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)
throws java.io.IOException
- Throws:
java.io.IOException
processServerSupplementalData
void processServerSupplementalData(java.util.Vector serverSupplementalData)
throws java.io.IOException
- Throws:
java.io.IOException
getKeyExchange
TlsKeyExchange getKeyExchange()
throws java.io.IOException
- Throws:
java.io.IOException
getAuthentication
TlsAuthentication getAuthentication()
throws java.io.IOException
- Throws:
java.io.IOException
getClientSupplementalData
java.util.Vector getClientSupplementalData()
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
notifyNewSessionTicket
void notifyNewSessionTicket(NewSessionTicket newSessionTicket)
throws java.io.IOException
- RFC 5077 3.3. NewSessionTicket Handshake Message
This method will be called (only) when a NewSessionTicket handshake message is received. The
ticket is opaque to the client and clients MUST NOT examine the ticket under the assumption
that it complies with e.g. RFC 5077 4. Recommended Ticket Construction.
- Parameters:
newSessionTicket
- The ticket.
- Throws:
java.io.IOException
notifyHandshakeComplete
void notifyHandshakeComplete()
throws java.io.IOException
- Throws:
java.io.IOException