Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Interface TlsClient

All Superinterfaces:
TlsPeer
All Known Implementing Classes:
AbstractTlsClient, DefaultTlsClient, LegacyTlsClient, PSKTlsClient, SRPTlsClient

public interface TlsClient
extends TlsPeer


Method Summary
 TlsAuthentication getAuthentication()
           
 TlsCipher getCipher()
           
 int[] getCipherSuites()
           
 java.util.Hashtable getClientExtensions()
           
 ProtocolVersion getClientHelloRecordLayerVersion()
           
 java.util.Vector getClientSupplementalData()
           
 ProtocolVersion getClientVersion()
           
 TlsCompression getCompression()
           
 short[] getCompressionMethods()
           
 TlsKeyExchange getKeyExchange()
           
 void init(TlsClientContext context)
           
 void notifyHandshakeComplete()
           
 void notifyNewSessionTicket(NewSessionTicket newSessionTicket)
          RFC 5077 3.3.
 void notifySecureRenegotiation(boolean secureNegotiation)
           
 void notifySelectedCipherSuite(int selectedCipherSuite)
           
 void notifySelectedCompressionMethod(short selectedCompressionMethod)
           
 void notifyServerVersion(ProtocolVersion selectedVersion)
           
 void notifySessionID(byte[] sessionID)
           
 void processServerExtensions(java.util.Hashtable serverExtensions)
           
 void processServerSupplementalData(java.util.Vector serverSupplementalData)
           
 
Methods inherited from interface org.bouncycastle.crypto.tls.TlsPeer
notifyAlertRaised, notifyAlertReceived
 

Method Detail

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

Bouncy Castle Cryptography Library 1.49