Package org.bouncycastle.tls
Class DTLSClientProtocol
- java.lang.Object
-
- org.bouncycastle.tls.DTLSProtocol
-
- org.bouncycastle.tls.DTLSClientProtocol
-
public class DTLSClientProtocol extends DTLSProtocol
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DTLSClientProtocol.ClientHandshakeState
-
Constructor Summary
Constructors Constructor Description DTLSClientProtocol()
-
Method Summary
-
Methods inherited from class org.bouncycastle.tls.DTLSProtocol
applyMaxFragmentLengthExtension, evaluateMaxFragmentLengthExtension, generateCertificate, generateSupplementalData, processFinished, sendCertificateMessage, validateSelectedCipherSuite
-
-
-
-
Method Detail
-
connect
public DTLSTransport connect(TlsClient client, DatagramTransport transport) throws java.io.IOException
- Throws:
java.io.IOException
-
abortClientHandshake
protected void abortClientHandshake(DTLSClientProtocol.ClientHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer, short alertDescription)
-
clientHandshake
protected DTLSTransport clientHandshake(DTLSClientProtocol.ClientHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer) throws java.io.IOException
- Throws:
java.io.IOException
-
generateCertificateVerify
protected byte[] generateCertificateVerify(DTLSClientProtocol.ClientHandshakeState state, DigitallySigned certificateVerify) throws java.io.IOException
- Throws:
java.io.IOException
-
generateClientHello
protected byte[] generateClientHello(DTLSClientProtocol.ClientHandshakeState state) throws java.io.IOException
- Throws:
java.io.IOException
-
generateClientKeyExchange
protected byte[] generateClientKeyExchange(DTLSClientProtocol.ClientHandshakeState state) throws java.io.IOException
- Throws:
java.io.IOException
-
invalidateSession
protected void invalidateSession(DTLSClientProtocol.ClientHandshakeState state)
-
processCertificateRequest
protected void processCertificateRequest(DTLSClientProtocol.ClientHandshakeState state, byte[] body) throws java.io.IOException
- Throws:
java.io.IOException
-
processCertificateStatus
protected void processCertificateStatus(DTLSClientProtocol.ClientHandshakeState state, byte[] body) throws java.io.IOException
- Throws:
java.io.IOException
-
processHelloVerifyRequest
protected byte[] processHelloVerifyRequest(DTLSClientProtocol.ClientHandshakeState state, byte[] body) throws java.io.IOException
- Throws:
java.io.IOException
-
processNewSessionTicket
protected void processNewSessionTicket(DTLSClientProtocol.ClientHandshakeState state, byte[] body) throws java.io.IOException
- Throws:
java.io.IOException
-
processServerCertificate
protected void processServerCertificate(DTLSClientProtocol.ClientHandshakeState state, byte[] body) throws java.io.IOException
- Throws:
java.io.IOException
-
processServerHello
protected void processServerHello(DTLSClientProtocol.ClientHandshakeState state, byte[] body) throws java.io.IOException
- Throws:
java.io.IOException
-
processServerKeyExchange
protected void processServerKeyExchange(DTLSClientProtocol.ClientHandshakeState state, byte[] body) throws java.io.IOException
- Throws:
java.io.IOException
-
processServerSupplementalData
protected void processServerSupplementalData(DTLSClientProtocol.ClientHandshakeState state, byte[] body) throws java.io.IOException
- Throws:
java.io.IOException
-
reportServerVersion
protected void reportServerVersion(DTLSClientProtocol.ClientHandshakeState state, ProtocolVersion server_version) throws java.io.IOException
- Throws:
java.io.IOException
-
patchClientHelloWithCookie
protected static byte[] patchClientHelloWithCookie(byte[] clientHelloBody, byte[] cookie) throws java.io.IOException
- Throws:
java.io.IOException
-
-