Package org.bouncycastle.tls
Class TlsECDHEKeyExchange
java.lang.Object
org.bouncycastle.tls.AbstractTlsKeyExchange
org.bouncycastle.tls.TlsECDHEKeyExchange
- All Implemented Interfaces:
TlsKeyExchange
(D)TLS ECDHE key exchange (see RFC 4492).
-
Field Summary
Modifier and TypeFieldDescriptionprotected TlsAgreement
protected TlsECConfig
protected TlsCertificate
protected TlsCredentialedSigner
Fields inherited from class org.bouncycastle.tls.AbstractTlsKeyExchange
context, keyExchange
-
Constructor Summary
ConstructorDescriptionTlsECDHEKeyExchange
(int keyExchange) TlsECDHEKeyExchange
(int keyExchange, TlsECConfig ecConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
generateEphemeral
(OutputStream output) byte[]
short[]
void
processClientCredentials
(TlsCredentials clientCredentials) void
protected void
processEphemeral
(byte[] point) void
processServerCertificate
(Certificate serverCertificate) void
processServerCredentials
(TlsCredentials serverCredentials) void
boolean
void
Methods inherited from class org.bouncycastle.tls.AbstractTlsKeyExchange
init, processClientCertificate, requiresCertificateVerify, skipClientCredentials, skipServerKeyExchange
-
Field Details
-
ecConfig
-
serverCredentials
-
serverCertificate
-
agreement
-
-
Constructor Details
-
TlsECDHEKeyExchange
public TlsECDHEKeyExchange(int keyExchange) -
TlsECDHEKeyExchange
-
-
Method Details
-
skipServerCredentials
- Throws:
IOException
-
processServerCredentials
- Throws:
IOException
-
processServerCertificate
- Specified by:
processServerCertificate
in interfaceTlsKeyExchange
- Overrides:
processServerCertificate
in classAbstractTlsKeyExchange
- Throws:
IOException
-
requiresServerKeyExchange
public boolean requiresServerKeyExchange()- Specified by:
requiresServerKeyExchange
in interfaceTlsKeyExchange
- Overrides:
requiresServerKeyExchange
in classAbstractTlsKeyExchange
-
generateServerKeyExchange
- Specified by:
generateServerKeyExchange
in interfaceTlsKeyExchange
- Overrides:
generateServerKeyExchange
in classAbstractTlsKeyExchange
- Throws:
IOException
-
processServerKeyExchange
- Specified by:
processServerKeyExchange
in interfaceTlsKeyExchange
- Overrides:
processServerKeyExchange
in classAbstractTlsKeyExchange
- Throws:
IOException
-
getClientCertificateTypes
public short[] getClientCertificateTypes()- Specified by:
getClientCertificateTypes
in interfaceTlsKeyExchange
- Overrides:
getClientCertificateTypes
in classAbstractTlsKeyExchange
-
processClientCredentials
- Throws:
IOException
-
generateClientKeyExchange
- Throws:
IOException
-
processClientKeyExchange
- Specified by:
processClientKeyExchange
in interfaceTlsKeyExchange
- Overrides:
processClientKeyExchange
in classAbstractTlsKeyExchange
- Throws:
IOException
-
generatePreMasterSecret
- Throws:
IOException
-
generateEphemeral
- Throws:
IOException
-
processEphemeral
- Throws:
IOException
-