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