Package org.bouncycastle.tls
Class DefaultTlsKeyExchangeFactory
java.lang.Object
org.bouncycastle.tls.AbstractTlsKeyExchangeFactory
org.bouncycastle.tls.DefaultTlsKeyExchangeFactory
- All Implemented Interfaces:
TlsKeyExchangeFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateDHanonKeyExchangeClient
(int keyExchange, TlsDHGroupVerifier dhGroupVerifier) createDHanonKeyExchangeServer
(int keyExchange, TlsDHConfig dhConfig) createDHEKeyExchangeClient
(int keyExchange, TlsDHGroupVerifier dhGroupVerifier) createDHEKeyExchangeServer
(int keyExchange, TlsDHConfig dhConfig) createDHKeyExchange
(int keyExchange) createECDHanonKeyExchangeClient
(int keyExchange) createECDHanonKeyExchangeServer
(int keyExchange, TlsECConfig ecConfig) createECDHEKeyExchangeClient
(int keyExchange) createECDHEKeyExchangeServer
(int keyExchange, TlsECConfig ecConfig) createECDHKeyExchange
(int keyExchange) createPSKKeyExchangeClient
(int keyExchange, TlsPSKIdentity pskIdentity, TlsDHGroupVerifier dhGroupVerifier) createPSKKeyExchangeServer
(int keyExchange, TlsPSKIdentityManager pskIdentityManager, TlsDHConfig dhConfig, TlsECConfig ecConfig) createRSAKeyExchange
(int keyExchange) createSRPKeyExchangeClient
(int keyExchange, TlsSRPIdentity srpIdentity, TlsSRPConfigVerifier srpConfigVerifier) createSRPKeyExchangeServer
(int keyExchange, TlsSRPLoginParameters loginParameters)
-
Constructor Details
-
DefaultTlsKeyExchangeFactory
public DefaultTlsKeyExchangeFactory()
-
-
Method Details
-
createDHKeyExchange
- Specified by:
createDHKeyExchange
in interfaceTlsKeyExchangeFactory
- Overrides:
createDHKeyExchange
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createDHanonKeyExchangeClient
public TlsKeyExchange createDHanonKeyExchangeClient(int keyExchange, TlsDHGroupVerifier dhGroupVerifier) throws IOException - Specified by:
createDHanonKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Overrides:
createDHanonKeyExchangeClient
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createDHanonKeyExchangeServer
public TlsKeyExchange createDHanonKeyExchangeServer(int keyExchange, TlsDHConfig dhConfig) throws IOException - Specified by:
createDHanonKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Overrides:
createDHanonKeyExchangeServer
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createDHEKeyExchangeClient
public TlsKeyExchange createDHEKeyExchangeClient(int keyExchange, TlsDHGroupVerifier dhGroupVerifier) throws IOException - Specified by:
createDHEKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Overrides:
createDHEKeyExchangeClient
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createDHEKeyExchangeServer
public TlsKeyExchange createDHEKeyExchangeServer(int keyExchange, TlsDHConfig dhConfig) throws IOException - Specified by:
createDHEKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Overrides:
createDHEKeyExchangeServer
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHKeyExchange
- Specified by:
createECDHKeyExchange
in interfaceTlsKeyExchangeFactory
- Overrides:
createECDHKeyExchange
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHanonKeyExchangeClient
- Specified by:
createECDHanonKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Overrides:
createECDHanonKeyExchangeClient
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHanonKeyExchangeServer
public TlsKeyExchange createECDHanonKeyExchangeServer(int keyExchange, TlsECConfig ecConfig) throws IOException - Specified by:
createECDHanonKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Overrides:
createECDHanonKeyExchangeServer
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHEKeyExchangeClient
- Specified by:
createECDHEKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Overrides:
createECDHEKeyExchangeClient
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHEKeyExchangeServer
public TlsKeyExchange createECDHEKeyExchangeServer(int keyExchange, TlsECConfig ecConfig) throws IOException - Specified by:
createECDHEKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Overrides:
createECDHEKeyExchangeServer
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createPSKKeyExchangeClient
public TlsKeyExchange createPSKKeyExchangeClient(int keyExchange, TlsPSKIdentity pskIdentity, TlsDHGroupVerifier dhGroupVerifier) throws IOException - Specified by:
createPSKKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Overrides:
createPSKKeyExchangeClient
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createPSKKeyExchangeServer
public TlsKeyExchange createPSKKeyExchangeServer(int keyExchange, TlsPSKIdentityManager pskIdentityManager, TlsDHConfig dhConfig, TlsECConfig ecConfig) throws IOException - Specified by:
createPSKKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Overrides:
createPSKKeyExchangeServer
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createRSAKeyExchange
- Specified by:
createRSAKeyExchange
in interfaceTlsKeyExchangeFactory
- Overrides:
createRSAKeyExchange
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createSRPKeyExchangeClient
public TlsKeyExchange createSRPKeyExchangeClient(int keyExchange, TlsSRPIdentity srpIdentity, TlsSRPConfigVerifier srpConfigVerifier) throws IOException - Specified by:
createSRPKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Overrides:
createSRPKeyExchangeClient
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-
createSRPKeyExchangeServer
public TlsKeyExchange createSRPKeyExchangeServer(int keyExchange, TlsSRPLoginParameters loginParameters) throws IOException - Specified by:
createSRPKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Overrides:
createSRPKeyExchangeServer
in classAbstractTlsKeyExchangeFactory
- Throws:
IOException
-