Package org.bouncycastle.tls
Class DTLSProtocol
- java.lang.Object
-
- org.bouncycastle.tls.DTLSProtocol
-
- Direct Known Subclasses:
DTLSClientProtocol
,DTLSServerProtocol
public abstract class DTLSProtocol extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DTLSProtocol()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
applyMaxFragmentLengthExtension(org.bouncycastle.tls.DTLSRecordLayer recordLayer, short maxFragmentLength)
protected static byte[]
createVerifyData(TlsContext context, org.bouncycastle.tls.DTLSReliableHandshake handshake, boolean isServer)
protected static short
evaluateMaxFragmentLengthExtension(boolean resumedSession, java.util.Hashtable clientExtensions, java.util.Hashtable serverExtensions, short alertDescription)
protected static byte[]
generateCertificate(TlsContext context, Certificate certificate, java.io.OutputStream endPointHash)
protected static byte[]
generateSupplementalData(java.util.Vector supplementalData)
protected void
processFinished(byte[] body, byte[] expected_verify_data)
protected static void
sendCertificateMessage(TlsContext context, org.bouncycastle.tls.DTLSReliableHandshake handshake, Certificate certificate, java.io.OutputStream endPointHash)
protected static int
validateSelectedCipherSuite(int selectedCipherSuite, short alertDescription)
-
-
-
Method Detail
-
processFinished
protected void processFinished(byte[] body, byte[] expected_verify_data) throws java.io.IOException
- Throws:
java.io.IOException
-
applyMaxFragmentLengthExtension
protected static void applyMaxFragmentLengthExtension(org.bouncycastle.tls.DTLSRecordLayer recordLayer, short maxFragmentLength) throws java.io.IOException
- Throws:
java.io.IOException
-
evaluateMaxFragmentLengthExtension
protected static short evaluateMaxFragmentLengthExtension(boolean resumedSession, java.util.Hashtable clientExtensions, java.util.Hashtable serverExtensions, short alertDescription) throws java.io.IOException
- Throws:
java.io.IOException
-
generateCertificate
protected static byte[] generateCertificate(TlsContext context, Certificate certificate, java.io.OutputStream endPointHash) throws java.io.IOException
- Throws:
java.io.IOException
-
generateSupplementalData
protected static byte[] generateSupplementalData(java.util.Vector supplementalData) throws java.io.IOException
- Throws:
java.io.IOException
-
createVerifyData
protected static byte[] createVerifyData(TlsContext context, org.bouncycastle.tls.DTLSReliableHandshake handshake, boolean isServer)
-
sendCertificateMessage
protected static void sendCertificateMessage(TlsContext context, org.bouncycastle.tls.DTLSReliableHandshake handshake, Certificate certificate, java.io.OutputStream endPointHash) throws java.io.IOException
- Throws:
java.io.IOException
-
validateSelectedCipherSuite
protected static int validateSelectedCipherSuite(int selectedCipherSuite, short alertDescription) throws java.io.IOException
- Throws:
java.io.IOException
-
-