Bouncy Castle Cryptography 1.46

org.bouncycastle.crypto.tls
Class DefaultTlsClient

java.lang.Object
  extended by org.bouncycastle.crypto.tls.DefaultTlsClient
All Implemented Interfaces:
TlsClient
Direct Known Subclasses:
LegacyTlsClient

public abstract class DefaultTlsClient
extends java.lang.Object
implements TlsClient


Field Summary
protected  TlsCipherFactory cipherFactory
           
protected  TlsClientContext context
           
protected  int selectedCipherSuite
           
protected  int selectedCompressionMethod
           
 
Constructor Summary
DefaultTlsClient()
           
DefaultTlsClient(TlsCipherFactory cipherFactory)
           
 
Method Summary
protected  TlsKeyExchange createDHEKeyExchange(int keyExchange)
           
protected  TlsKeyExchange createDHKeyExchange(int keyExchange)
           
protected  TlsKeyExchange createECDHEKeyExchange(int keyExchange)
           
protected  TlsKeyExchange createECDHKeyExchange(int keyExchange)
           
protected  TlsKeyExchange createRSAKeyExchange()
           
 TlsCipher getCipher()
           
 int[] getCipherSuites()
           
 java.util.Hashtable getClientExtensions()
           
 TlsCompression getCompression()
           
 short[] getCompressionMethods()
           
 TlsKeyExchange getKeyExchange()
           
 void init(TlsClientContext context)
           
 void notifySecureRenegotiation(boolean secureRenegotiation)
           
 void notifySelectedCipherSuite(int selectedCipherSuite)
           
 void notifySelectedCompressionMethod(short selectedCompressionMethod)
           
 void notifySessionID(byte[] sessionID)
           
 void processServerExtensions(java.util.Hashtable serverExtensions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bouncycastle.crypto.tls.TlsClient
getAuthentication
 

Field Detail

cipherFactory

protected TlsCipherFactory cipherFactory

context

protected TlsClientContext context

selectedCipherSuite

protected int selectedCipherSuite

selectedCompressionMethod

protected int selectedCompressionMethod
Constructor Detail

DefaultTlsClient

public DefaultTlsClient()

DefaultTlsClient

public DefaultTlsClient(TlsCipherFactory cipherFactory)
Method Detail

init

public void init(TlsClientContext context)
Specified by:
init in interface TlsClient

getCipherSuites

public int[] getCipherSuites()
Specified by:
getCipherSuites in interface TlsClient

getClientExtensions

public java.util.Hashtable getClientExtensions()
Specified by:
getClientExtensions in interface TlsClient

getCompressionMethods

public short[] getCompressionMethods()
Specified by:
getCompressionMethods in interface TlsClient

notifySessionID

public void notifySessionID(byte[] sessionID)
Specified by:
notifySessionID in interface TlsClient

notifySelectedCipherSuite

public void notifySelectedCipherSuite(int selectedCipherSuite)
Specified by:
notifySelectedCipherSuite in interface TlsClient

notifySelectedCompressionMethod

public void notifySelectedCompressionMethod(short selectedCompressionMethod)
Specified by:
notifySelectedCompressionMethod in interface TlsClient

notifySecureRenegotiation

public void notifySecureRenegotiation(boolean secureRenegotiation)
                               throws java.io.IOException
Specified by:
notifySecureRenegotiation in interface TlsClient
Throws:
java.io.IOException

processServerExtensions

public void processServerExtensions(java.util.Hashtable serverExtensions)
Specified by:
processServerExtensions in interface TlsClient

getKeyExchange

public TlsKeyExchange getKeyExchange()
                              throws java.io.IOException
Specified by:
getKeyExchange in interface TlsClient
Throws:
java.io.IOException

getCompression

public TlsCompression getCompression()
                              throws java.io.IOException
Specified by:
getCompression in interface TlsClient
Throws:
java.io.IOException

getCipher

public TlsCipher getCipher()
                    throws java.io.IOException
Specified by:
getCipher in interface TlsClient
Throws:
java.io.IOException

createDHKeyExchange

protected TlsKeyExchange createDHKeyExchange(int keyExchange)

createDHEKeyExchange

protected TlsKeyExchange createDHEKeyExchange(int keyExchange)

createECDHKeyExchange

protected TlsKeyExchange createECDHKeyExchange(int keyExchange)

createECDHEKeyExchange

protected TlsKeyExchange createECDHEKeyExchange(int keyExchange)

createRSAKeyExchange

protected TlsKeyExchange createRSAKeyExchange()

Bouncy Castle Cryptography 1.46