Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Class DefaultTlsClient

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

public abstract class DefaultTlsClient
extends AbstractTlsClient


Field Summary
protected  short[] clientECPointFormats
           
protected  int[] namedCurves
           
protected  short[] serverECPointFormats
           
 
Fields inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
cipherFactory, context, selectedCipherSuite, selectedCompressionMethod, supportedSignatureAlgorithms
 
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()
           
 TlsKeyExchange getKeyExchange()
           
 void processServerExtensions(java.util.Hashtable serverExtensions)
           
 
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
getClientHelloRecordLayerVersion, getClientSupplementalData, getClientVersion, getCompression, getCompressionMethods, getMinimumVersion, init, notifyHandshakeComplete, notifyNewSessionTicket, notifySecureRenegotiation, notifySelectedCipherSuite, notifySelectedCompressionMethod, notifyServerVersion, notifySessionID, processServerSupplementalData
 
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsPeer
notifyAlertRaised, notifyAlertReceived
 
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
 
Methods inherited from interface org.bouncycastle.crypto.tls.TlsPeer
notifyAlertRaised, notifyAlertReceived
 

Field Detail

namedCurves

protected int[] namedCurves

clientECPointFormats

protected short[] clientECPointFormats

serverECPointFormats

protected short[] serverECPointFormats
Constructor Detail

DefaultTlsClient

public DefaultTlsClient()

DefaultTlsClient

public DefaultTlsClient(TlsCipherFactory cipherFactory)
Method Detail

getCipherSuites

public int[] getCipherSuites()

getClientExtensions

public java.util.Hashtable getClientExtensions()
                                        throws java.io.IOException
Specified by:
getClientExtensions in interface TlsClient
Overrides:
getClientExtensions in class AbstractTlsClient
Throws:
java.io.IOException

processServerExtensions

public void processServerExtensions(java.util.Hashtable serverExtensions)
                             throws java.io.IOException
Specified by:
processServerExtensions in interface TlsClient
Overrides:
processServerExtensions in class AbstractTlsClient
Throws:
java.io.IOException

getKeyExchange

public TlsKeyExchange getKeyExchange()
                              throws java.io.IOException
Throws:
java.io.IOException

getCipher

public TlsCipher getCipher()
                    throws java.io.IOException
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 Library 1.49