public class DTLSServerProtocol extends DTLSProtocol
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
DTLSServerProtocol.ServerHandshakeState |
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
verifyRequests |
secureRandom| Constructor | Description |
|---|---|
DTLSServerProtocol(java.security.SecureRandom secureRandom) |
applyMaxFragmentLengthExtension, evaluateMaxFragmentLengthExtension, generateCertificate, generateSupplementalData, processFinished, validateSelectedCipherSuitepublic DTLSServerProtocol(java.security.SecureRandom secureRandom)
public boolean getVerifyRequests()
public void setVerifyRequests(boolean verifyRequests)
public DTLSTransport accept(TlsServer server, DatagramTransport transport) throws java.io.IOException
java.io.IOExceptionprotected void abortServerHandshake(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.crypto.tls.DTLSRecordLayer recordLayer, short alertDescription)
protected DTLSTransport serverHandshake(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.crypto.tls.DTLSRecordLayer recordLayer) throws java.io.IOException
java.io.IOExceptionprotected byte[] generateCertificateRequest(DTLSServerProtocol.ServerHandshakeState state, CertificateRequest certificateRequest) throws java.io.IOException
java.io.IOExceptionprotected byte[] generateCertificateStatus(DTLSServerProtocol.ServerHandshakeState state, CertificateStatus certificateStatus) throws java.io.IOException
java.io.IOExceptionprotected byte[] generateNewSessionTicket(DTLSServerProtocol.ServerHandshakeState state, NewSessionTicket newSessionTicket) throws java.io.IOException
java.io.IOExceptionprotected byte[] generateServerHello(DTLSServerProtocol.ServerHandshakeState state) throws java.io.IOException
java.io.IOExceptionprotected void invalidateSession(DTLSServerProtocol.ServerHandshakeState state)
protected void notifyClientCertificate(DTLSServerProtocol.ServerHandshakeState state, Certificate clientCertificate) throws java.io.IOException
java.io.IOExceptionprotected void processClientCertificate(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
java.io.IOExceptionprotected void processCertificateVerify(DTLSServerProtocol.ServerHandshakeState state, byte[] body, TlsHandshakeHash prepareFinishHash) throws java.io.IOException
java.io.IOExceptionprotected void processClientHello(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
java.io.IOExceptionprotected void processClientKeyExchange(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
java.io.IOExceptionprotected void processClientSupplementalData(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
java.io.IOExceptionprotected boolean expectCertificateVerifyMessage(DTLSServerProtocol.ServerHandshakeState state)