Package org.bouncycastle.crypto.tls
Class DefaultTlsClient
- java.lang.Object
-
- org.bouncycastle.crypto.tls.AbstractTlsPeer
-
- org.bouncycastle.crypto.tls.AbstractTlsClient
-
- org.bouncycastle.crypto.tls.DefaultTlsClient
-
- Direct Known Subclasses:
MockDTLSClient
public abstract class DefaultTlsClient extends AbstractTlsClient
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsDHVerifierdhVerifier-
Fields inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
cipherFactory, clientECPointFormats, context, namedCurves, selectedCipherSuite, selectedCompressionMethod, serverECPointFormats, supportedSignatureAlgorithms
-
-
Constructor Summary
Constructors Constructor Description DefaultTlsClient()DefaultTlsClient(TlsCipherFactory cipherFactory)DefaultTlsClient(TlsCipherFactory cipherFactory, TlsDHVerifier dhVerifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TlsKeyExchangecreateDHEKeyExchange(int keyExchange)protected TlsKeyExchangecreateDHKeyExchange(int keyExchange)protected TlsKeyExchangecreateECDHEKeyExchange(int keyExchange)protected TlsKeyExchangecreateECDHKeyExchange(int keyExchange)protected TlsKeyExchangecreateRSAKeyExchange()int[]getCipherSuites()TlsKeyExchangegetKeyExchange()-
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
allowUnexpectedServerExtension, checkForUnexpectedServerExtension, getCipher, getClientExtensions, getClientHelloRecordLayerVersion, getClientSupplementalData, getClientVersion, getCompression, getCompressionMethods, getMinimumVersion, getSessionToResume, init, isFallback, notifyNewSessionTicket, notifySelectedCipherSuite, notifySelectedCompressionMethod, notifyServerVersion, notifySessionID, processServerExtensions, processServerSupplementalData
-
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsPeer
notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldUseGMTUnixTime
-
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, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldUseGMTUnixTime
-
-
-
-
Field Detail
-
dhVerifier
protected TlsDHVerifier dhVerifier
-
-
Constructor Detail
-
DefaultTlsClient
public DefaultTlsClient()
-
DefaultTlsClient
public DefaultTlsClient(TlsCipherFactory cipherFactory)
-
DefaultTlsClient
public DefaultTlsClient(TlsCipherFactory cipherFactory, TlsDHVerifier dhVerifier)
-
-
Method Detail
-
getCipherSuites
public int[] getCipherSuites()
-
getKeyExchange
public TlsKeyExchange getKeyExchange() 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()
-
-