Package org.bouncycastle.tls
Class AbstractTlsKeyExchangeFactory
java.lang.Object
org.bouncycastle.tls.AbstractTlsKeyExchangeFactory
- All Implemented Interfaces:
TlsKeyExchangeFactory
- Direct Known Subclasses:
DefaultTlsKeyExchangeFactory
Base class for supporting a TLS key exchange factory implementation.
-
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
-
AbstractTlsKeyExchangeFactory
public AbstractTlsKeyExchangeFactory()
-
-
Method Details
-
createDHKeyExchange
- Specified by:
createDHKeyExchange
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createDHanonKeyExchangeClient
public TlsKeyExchange createDHanonKeyExchangeClient(int keyExchange, TlsDHGroupVerifier dhGroupVerifier) throws IOException - Specified by:
createDHanonKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createDHanonKeyExchangeServer
public TlsKeyExchange createDHanonKeyExchangeServer(int keyExchange, TlsDHConfig dhConfig) throws IOException - Specified by:
createDHanonKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createDHEKeyExchangeClient
public TlsKeyExchange createDHEKeyExchangeClient(int keyExchange, TlsDHGroupVerifier dhGroupVerifier) throws IOException - Specified by:
createDHEKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createDHEKeyExchangeServer
public TlsKeyExchange createDHEKeyExchangeServer(int keyExchange, TlsDHConfig dhConfig) throws IOException - Specified by:
createDHEKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHKeyExchange
- Specified by:
createECDHKeyExchange
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHanonKeyExchangeClient
- Specified by:
createECDHanonKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHanonKeyExchangeServer
public TlsKeyExchange createECDHanonKeyExchangeServer(int keyExchange, TlsECConfig ecConfig) throws IOException - Specified by:
createECDHanonKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHEKeyExchangeClient
- Specified by:
createECDHEKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createECDHEKeyExchangeServer
public TlsKeyExchange createECDHEKeyExchangeServer(int keyExchange, TlsECConfig ecConfig) throws IOException - Specified by:
createECDHEKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createPSKKeyExchangeClient
public TlsKeyExchange createPSKKeyExchangeClient(int keyExchange, TlsPSKIdentity pskIdentity, TlsDHGroupVerifier dhGroupVerifier) throws IOException - Specified by:
createPSKKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createPSKKeyExchangeServer
public TlsKeyExchange createPSKKeyExchangeServer(int keyExchange, TlsPSKIdentityManager pskIdentityManager, TlsDHConfig dhConfig, TlsECConfig ecConfig) throws IOException - Specified by:
createPSKKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createRSAKeyExchange
- Specified by:
createRSAKeyExchange
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createSRPKeyExchangeClient
public TlsKeyExchange createSRPKeyExchangeClient(int keyExchange, TlsSRPIdentity srpIdentity, TlsSRPConfigVerifier srpConfigVerifier) throws IOException - Specified by:
createSRPKeyExchangeClient
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-
createSRPKeyExchangeServer
public TlsKeyExchange createSRPKeyExchangeServer(int keyExchange, TlsSRPLoginParameters loginParameters) throws IOException - Specified by:
createSRPKeyExchangeServer
in interfaceTlsKeyExchangeFactory
- Throws:
IOException
-