Package org.bouncycastle.tls
Class DTLSServerProtocol
java.lang.Object
org.bouncycastle.tls.DTLSProtocol
org.bouncycastle.tls.DTLSServerProtocol
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidabortServerHandshake(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer, short alertDescription) accept(TlsServer server, DatagramTransport transport) accept(TlsServer server, DatagramTransport transport, DTLSRequest request) protected voidprotected booleanestablishSession(DTLSServerProtocol.ServerHandshakeState state, TlsSession sessionToResume) protected booleanprotected 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) booleanprotected voidprotected voidnotifyClientCertificate(DTLSServerProtocol.ServerHandshakeState state, Certificate clientCertificate) protected voidprocessCertificateVerify(DTLSServerProtocol.ServerHandshakeState state, byte[] body, TlsHandshakeHash handshakeHash) protected voidprocessClientCertificate(DTLSServerProtocol.ServerHandshakeState state, byte[] body) protected voidprocessClientHello(DTLSServerProtocol.ServerHandshakeState state, byte[] body) protected voidprocessClientHello(DTLSServerProtocol.ServerHandshakeState state, ClientHello clientHello) protected voidprocessClientKeyExchange(DTLSServerProtocol.ServerHandshakeState state, byte[] body) protected voidprocessClientSupplementalData(DTLSServerProtocol.ServerHandshakeState state, byte[] body) protected DTLSTransportserverHandshake(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.tls.DTLSRecordLayer recordLayer, DTLSRequest request) voidsetVerifyRequests(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
-