Package org.bouncycastle.tls
Class DTLSServerProtocol
java.lang.Object
org.bouncycastle.tls.DTLSProtocol
org.bouncycastle.tls.DTLSServerProtocol
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
abortServerHandshake
(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer, short alertDescription) accept
(TlsServer server, DatagramTransport transport) accept
(TlsServer server, DatagramTransport transport, DTLSRequest request) protected void
protected boolean
establishSession
(DTLSServerProtocol.ServerHandshakeState state, TlsSession sessionToResume) protected boolean
protected byte[]
generateCertificateRequest
(DTLSServerProtocol.ServerHandshakeState state, CertificateRequest certificateRequest) protected byte[]
generateCertificateStatus
(DTLSServerProtocol.ServerHandshakeState state, CertificateStatus certificateStatus) protected byte[]
generateNewSessionTicket
(DTLSServerProtocol.ServerHandshakeState state, NewSessionTicket newSessionTicket) protected byte[]
generateServerHello
(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer) boolean
protected void
protected void
notifyClientCertificate
(DTLSServerProtocol.ServerHandshakeState state, Certificate clientCertificate) protected void
processCertificateVerify
(DTLSServerProtocol.ServerHandshakeState state, byte[] body, TlsHandshakeHash handshakeHash) protected void
processClientCertificate
(DTLSServerProtocol.ServerHandshakeState state, byte[] body) protected void
processClientHello
(DTLSServerProtocol.ServerHandshakeState state, byte[] body) protected void
processClientHello
(DTLSServerProtocol.ServerHandshakeState state, ClientHello clientHello) protected void
processClientKeyExchange
(DTLSServerProtocol.ServerHandshakeState state, byte[] body) protected void
processClientSupplementalData
(DTLSServerProtocol.ServerHandshakeState state, byte[] body) protected DTLSTransport
serverHandshake
(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer, DTLSRequest request) void
setVerifyRequests
(boolean verifyRequests) Methods inherited from class org.bouncycastle.tls.DTLSProtocol
applyMaxFragmentLengthExtension, evaluateMaxFragmentLengthExtension, generateCertificate, generateSupplementalData, processFinished, sendCertificateMessage, validateSelectedCipherSuite
-
Field Details
-
verifyRequests
protected boolean verifyRequests
-
-
Constructor Details
-
DTLSServerProtocol
public DTLSServerProtocol()
-
-
Method Details
-
getVerifyRequests
public boolean getVerifyRequests() -
setVerifyRequests
public void setVerifyRequests(boolean verifyRequests) -
accept
- Throws:
IOException
-
accept
public DTLSTransport accept(TlsServer server, DatagramTransport transport, DTLSRequest request) throws IOException - Throws:
IOException
-
abortServerHandshake
protected void abortServerHandshake(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer, short alertDescription) -
serverHandshake
protected DTLSTransport serverHandshake(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer, DTLSRequest request) throws IOException - Throws:
IOException
-
generateCertificateRequest
protected byte[] generateCertificateRequest(DTLSServerProtocol.ServerHandshakeState state, CertificateRequest certificateRequest) throws IOException - Throws:
IOException
-
generateCertificateStatus
protected byte[] generateCertificateStatus(DTLSServerProtocol.ServerHandshakeState state, CertificateStatus certificateStatus) throws IOException - Throws:
IOException
-
generateNewSessionTicket
protected byte[] generateNewSessionTicket(DTLSServerProtocol.ServerHandshakeState state, NewSessionTicket newSessionTicket) throws IOException - Throws:
IOException
-
generateServerHello
protected byte[] generateServerHello(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer) throws IOException - Throws:
IOException
-
cancelSession
-
establishSession
protected boolean establishSession(DTLSServerProtocol.ServerHandshakeState state, TlsSession sessionToResume) -
invalidateSession
-
notifyClientCertificate
protected void notifyClientCertificate(DTLSServerProtocol.ServerHandshakeState state, Certificate clientCertificate) throws IOException - Throws:
IOException
-
processClientCertificate
protected void processClientCertificate(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws IOException - Throws:
IOException
-
processCertificateVerify
protected void processCertificateVerify(DTLSServerProtocol.ServerHandshakeState state, byte[] body, TlsHandshakeHash handshakeHash) throws IOException - Throws:
IOException
-
processClientHello
protected void processClientHello(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws IOException - Throws:
IOException
-
processClientHello
protected void processClientHello(DTLSServerProtocol.ServerHandshakeState state, ClientHello clientHello) throws IOException - Throws:
IOException
-
processClientKeyExchange
protected void processClientKeyExchange(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws IOException - Throws:
IOException
-
processClientSupplementalData
protected void processClientSupplementalData(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws IOException - Throws:
IOException
-
expectCertificateVerifyMessage
-