Package org.bouncycastle.tls
Class TlsECDHKeyExchange
java.lang.Object
org.bouncycastle.tls.AbstractTlsKeyExchange
org.bouncycastle.tls.TlsECDHKeyExchange
- All Implemented Interfaces:
TlsKeyExchange
(D)TLS ECDH key exchange (see RFC 4492).
-
Field Summary
Fields inherited from class org.bouncycastle.tls.AbstractTlsKeyExchange
context, keyExchange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
short[]
void
processClientCertificate
(Certificate clientCertificate) void
processClientCredentials
(TlsCredentials clientCredentials) void
void
processServerCertificate
(Certificate serverCertificate) void
processServerCredentials
(TlsCredentials serverCredentials) boolean
void
void
Methods inherited from class org.bouncycastle.tls.AbstractTlsKeyExchange
generateServerKeyExchange, init, processServerKeyExchange, requiresServerKeyExchange, skipServerKeyExchange
-
Field Details
-
agreementCredentials
-
ecdhPeerCertificate
-
-
Constructor Details
-
TlsECDHKeyExchange
public TlsECDHKeyExchange(int keyExchange)
-
-
Method Details
-
skipServerCredentials
- Throws:
IOException
-
processServerCredentials
- Throws:
IOException
-
processServerCertificate
- Specified by:
processServerCertificate
in interfaceTlsKeyExchange
- Overrides:
processServerCertificate
in classAbstractTlsKeyExchange
- Throws:
IOException
-
getClientCertificateTypes
public short[] getClientCertificateTypes()- Specified by:
getClientCertificateTypes
in interfaceTlsKeyExchange
- Overrides:
getClientCertificateTypes
in classAbstractTlsKeyExchange
-
skipClientCredentials
- Specified by:
skipClientCredentials
in interfaceTlsKeyExchange
- Overrides:
skipClientCredentials
in classAbstractTlsKeyExchange
- Throws:
IOException
-
processClientCredentials
- Throws:
IOException
-
generateClientKeyExchange
- Throws:
IOException
-
processClientCertificate
- Specified by:
processClientCertificate
in interfaceTlsKeyExchange
- Overrides:
processClientCertificate
in classAbstractTlsKeyExchange
- Throws:
IOException
-
processClientKeyExchange
- Specified by:
processClientKeyExchange
in interfaceTlsKeyExchange
- Overrides:
processClientKeyExchange
in classAbstractTlsKeyExchange
- Throws:
IOException
-
requiresCertificateVerify
public boolean requiresCertificateVerify()- Specified by:
requiresCertificateVerify
in interfaceTlsKeyExchange
- Overrides:
requiresCertificateVerify
in classAbstractTlsKeyExchange
-
generatePreMasterSecret
- Throws:
IOException
-