Package org.bouncycastle.tls
Interface TlsKeyExchange
- All Known Implementing Classes:
AbstractTlsKeyExchange
,TlsDHanonKeyExchange
,TlsDHEKeyExchange
,TlsDHKeyExchange
,TlsECDHanonKeyExchange
,TlsECDHEKeyExchange
,TlsECDHKeyExchange
,TlsPSKKeyExchange
,TlsRSAKeyExchange
,TlsSRPKeyExchange
public interface TlsKeyExchange
A generic interface for key exchange implementations in (D)TLS.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
byte[]
short[]
void
init
(TlsContext context) void
processClientCertificate
(Certificate clientCertificate) void
processClientCredentials
(TlsCredentials clientCredentials) void
void
processServerCertificate
(Certificate serverCertificate) void
processServerCredentials
(TlsCredentials serverCredentials) void
boolean
boolean
void
void
void
-
Method Details
-
init
-
skipServerCredentials
- Throws:
IOException
-
processServerCredentials
- Throws:
IOException
-
processServerCertificate
- Throws:
IOException
-
requiresServerKeyExchange
boolean requiresServerKeyExchange() -
generateServerKeyExchange
- Throws:
IOException
-
skipServerKeyExchange
- Throws:
IOException
-
processServerKeyExchange
- Throws:
IOException
-
getClientCertificateTypes
short[] getClientCertificateTypes() -
skipClientCredentials
- Throws:
IOException
-
processClientCredentials
- Throws:
IOException
-
processClientCertificate
- Throws:
IOException
-
generateClientKeyExchange
- Throws:
IOException
-
processClientKeyExchange
- Throws:
IOException
-
requiresCertificateVerify
boolean requiresCertificateVerify() -
generatePreMasterSecret
- Throws:
IOException
-