Package org.bouncycastle.tls
Class DTLSProtocol
java.lang.Object
org.bouncycastle.tls.DTLSProtocol
- Direct Known Subclasses:
DTLSClientProtocol,DTLSServerProtocol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidapplyMaxFragmentLengthExtension(org.bouncycastle.tls.DTLSRecordLayer recordLayer, short maxFragmentLength) protected static shortevaluateMaxFragmentLengthExtension(boolean resumedSession, Hashtable clientExtensions, Hashtable serverExtensions, short alertDescription) Deprecated.Will be removed.protected static byte[]generateCertificate(TlsContext context, Certificate certificate, OutputStream endPointHash) protected static byte[]generateSupplementalData(Vector supplementalData) protected voidprocessFinished(byte[] body, byte[] expected_verify_data) protected static voidsendCertificateMessage(TlsContext context, org.bouncycastle.tls.DTLSReliableHandshake handshake, Certificate certificate, OutputStream endPointHash) protected static intvalidateSelectedCipherSuite(int selectedCipherSuite, short alertDescription)
-
Constructor Details
-
DTLSProtocol
protected DTLSProtocol()
-
-
Method Details
-
processFinished
- Throws:
IOException
-
applyMaxFragmentLengthExtension
protected static void applyMaxFragmentLengthExtension(org.bouncycastle.tls.DTLSRecordLayer recordLayer, short maxFragmentLength) throws IOException - Throws:
IOException
-
evaluateMaxFragmentLengthExtension
protected static short evaluateMaxFragmentLengthExtension(boolean resumedSession, Hashtable clientExtensions, Hashtable serverExtensions, short alertDescription) throws IOException Deprecated.Will be removed.- Throws:
IOException
-
generateCertificate
protected static byte[] generateCertificate(TlsContext context, Certificate certificate, OutputStream endPointHash) throws IOException - Throws:
IOException
-
generateSupplementalData
- Throws:
IOException
-
sendCertificateMessage
protected static void sendCertificateMessage(TlsContext context, org.bouncycastle.tls.DTLSReliableHandshake handshake, Certificate certificate, OutputStream endPointHash) throws IOException - Throws:
IOException
-
validateSelectedCipherSuite
protected static int validateSelectedCipherSuite(int selectedCipherSuite, short alertDescription) throws IOException - Throws:
IOException
-