Package org.bouncycastle.crypto.tls
Interface TlsKeyExchange
-
- All Known Implementing Classes:
AbstractTlsKeyExchange,TlsDHEKeyExchange,TlsDHKeyExchange,TlsECDHEKeyExchange,TlsECDHKeyExchange,TlsPSKKeyExchange,TlsRSAKeyExchange,TlsSRPKeyExchange
public interface TlsKeyExchangeDeprecated.Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).A generic interface for key exchange implementations in (D)TLS.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidgenerateClientKeyExchange(java.io.OutputStream output)Deprecated.byte[]generatePremasterSecret()Deprecated.byte[]generateServerKeyExchange()Deprecated.voidinit(TlsContext context)Deprecated.voidprocessClientCertificate(Certificate clientCertificate)Deprecated.voidprocessClientCredentials(TlsCredentials clientCredentials)Deprecated.voidprocessClientKeyExchange(java.io.InputStream input)Deprecated.voidprocessServerCertificate(Certificate serverCertificate)Deprecated.voidprocessServerCredentials(TlsCredentials serverCredentials)Deprecated.voidprocessServerKeyExchange(java.io.InputStream input)Deprecated.booleanrequiresServerKeyExchange()Deprecated.voidskipClientCredentials()Deprecated.voidskipServerCredentials()Deprecated.voidskipServerKeyExchange()Deprecated.voidvalidateCertificateRequest(CertificateRequest certificateRequest)Deprecated.
-
-
-
Method Detail
-
init
void init(TlsContext context)
Deprecated.
-
skipServerCredentials
void skipServerCredentials() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
processServerCredentials
void processServerCredentials(TlsCredentials serverCredentials) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
processServerCertificate
void processServerCertificate(Certificate serverCertificate) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
requiresServerKeyExchange
boolean requiresServerKeyExchange()
Deprecated.
-
generateServerKeyExchange
byte[] generateServerKeyExchange() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
skipServerKeyExchange
void skipServerKeyExchange() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
processServerKeyExchange
void processServerKeyExchange(java.io.InputStream input) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
validateCertificateRequest
void validateCertificateRequest(CertificateRequest certificateRequest) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
skipClientCredentials
void skipClientCredentials() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
processClientCredentials
void processClientCredentials(TlsCredentials clientCredentials) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
processClientCertificate
void processClientCertificate(Certificate clientCertificate) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
generateClientKeyExchange
void generateClientKeyExchange(java.io.OutputStream output) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
processClientKeyExchange
void processClientKeyExchange(java.io.InputStream input) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
generatePremasterSecret
byte[] generatePremasterSecret() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-