public class DTLSServerProtocol extends DTLSProtocol
Modifier and Type | Class and Description |
---|---|
protected static class |
DTLSServerProtocol.ServerHandshakeState
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
verifyRequests
Deprecated.
|
secureRandom
Constructor and Description |
---|
DTLSServerProtocol(java.security.SecureRandom secureRandom)
Deprecated.
|
applyMaxFragmentLengthExtension, evaluateMaxFragmentLengthExtension, generateCertificate, generateSupplementalData, processFinished, validateSelectedCipherSuite
public 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.IOException
protected 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.IOException
protected byte[] generateCertificateRequest(DTLSServerProtocol.ServerHandshakeState state, CertificateRequest certificateRequest) throws java.io.IOException
java.io.IOException
protected byte[] generateCertificateStatus(DTLSServerProtocol.ServerHandshakeState state, CertificateStatus certificateStatus) throws java.io.IOException
java.io.IOException
protected byte[] generateNewSessionTicket(DTLSServerProtocol.ServerHandshakeState state, NewSessionTicket newSessionTicket) throws java.io.IOException
java.io.IOException
protected byte[] generateServerHello(DTLSServerProtocol.ServerHandshakeState state) throws java.io.IOException
java.io.IOException
protected void invalidateSession(DTLSServerProtocol.ServerHandshakeState state)
protected void notifyClientCertificate(DTLSServerProtocol.ServerHandshakeState state, Certificate clientCertificate) throws java.io.IOException
java.io.IOException
protected void processClientCertificate(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
java.io.IOException
protected void processCertificateVerify(DTLSServerProtocol.ServerHandshakeState state, byte[] body, TlsHandshakeHash prepareFinishHash) throws java.io.IOException
java.io.IOException
protected void processClientHello(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
java.io.IOException
protected void processClientKeyExchange(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
java.io.IOException
protected void processClientSupplementalData(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
java.io.IOException
protected boolean expectCertificateVerifyMessage(DTLSServerProtocol.ServerHandshakeState state)