Package org.bouncycastle.tls
Class TlsRSAKeyExchange
java.lang.Object
org.bouncycastle.tls.AbstractTlsKeyExchange
org.bouncycastle.tls.TlsRSAKeyExchange
- All Implemented Interfaces:
TlsKeyExchange
(D)TLS RSA key exchange.
-
Field Summary
Modifier and TypeFieldDescriptionprotected TlsSecret
protected TlsCredentialedDecryptor
protected TlsEncryptor
Fields inherited from class org.bouncycastle.tls.AbstractTlsKeyExchange
context, keyExchange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
short[]
void
processClientCredentials
(TlsCredentials clientCredentials) void
void
processServerCertificate
(Certificate serverCertificate) void
processServerCredentials
(TlsCredentials serverCredentials) void
Methods inherited from class org.bouncycastle.tls.AbstractTlsKeyExchange
generateServerKeyExchange, init, processClientCertificate, processServerKeyExchange, requiresCertificateVerify, requiresServerKeyExchange, skipClientCredentials, skipServerKeyExchange
-
Field Details
-
serverCredentials
-
serverEncryptor
-
preMasterSecret
-
-
Constructor Details
-
TlsRSAKeyExchange
public TlsRSAKeyExchange(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
-
processClientCredentials
- Throws:
IOException
-
generateClientKeyExchange
- Throws:
IOException
-
processClientKeyExchange
- Specified by:
processClientKeyExchange
in interfaceTlsKeyExchange
- Overrides:
processClientKeyExchange
in classAbstractTlsKeyExchange
- Throws:
IOException
-
generatePreMasterSecret
- Throws:
IOException
-