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