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