org.bouncycastle.crypto.tls
Class DTLSServerProtocol
java.lang.Object
org.bouncycastle.crypto.tls.DTLSProtocol
org.bouncycastle.crypto.tls.DTLSServerProtocol
public class DTLSServerProtocol
- extends DTLSProtocol
Method Summary |
DTLSTransport |
accept(TlsServer server,
DatagramTransport transport)
|
protected boolean |
expectCertificateVerifyMessage(DTLSServerProtocol.ServerHandshakeState state)
|
protected byte[] |
generateCertificateRequest(DTLSServerProtocol.ServerHandshakeState state,
CertificateRequest certificateRequest)
|
protected byte[] |
generateNewSessionTicket(DTLSServerProtocol.ServerHandshakeState state,
NewSessionTicket newSessionTicket)
|
protected byte[] |
generateServerHello(DTLSServerProtocol.ServerHandshakeState state)
|
boolean |
getVerifyRequests()
|
protected void |
notifyClientCertificate(DTLSServerProtocol.ServerHandshakeState state,
Certificate clientCertificate)
|
protected void |
processCertificateVerify(DTLSServerProtocol.ServerHandshakeState state,
byte[] body,
byte[] certificateVerifyHash)
|
protected void |
processClientCertificate(DTLSServerProtocol.ServerHandshakeState state,
byte[] body)
|
protected void |
processClientHello(DTLSServerProtocol.ServerHandshakeState state,
byte[] body)
|
protected void |
processClientKeyExchange(DTLSServerProtocol.ServerHandshakeState state,
byte[] body)
|
protected void |
processClientSupplementalData(DTLSServerProtocol.ServerHandshakeState state,
byte[] body)
|
DTLSTransport |
serverHandshake(DTLSServerProtocol.ServerHandshakeState state,
org.bouncycastle.crypto.tls.DTLSRecordLayer recordLayer)
|
void |
setVerifyRequests(boolean verifyRequests)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
verifyRequests
protected boolean verifyRequests
DTLSServerProtocol
public DTLSServerProtocol(java.security.SecureRandom secureRandom)
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
serverHandshake
public DTLSTransport serverHandshake(DTLSServerProtocol.ServerHandshakeState state,
org.bouncycastle.crypto.tls.DTLSRecordLayer recordLayer)
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
generateNewSessionTicket
protected byte[] generateNewSessionTicket(DTLSServerProtocol.ServerHandshakeState state,
NewSessionTicket newSessionTicket)
throws java.io.IOException
- Throws:
java.io.IOException
generateServerHello
protected byte[] generateServerHello(DTLSServerProtocol.ServerHandshakeState state)
throws java.io.IOException
- Throws:
java.io.IOException
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,
byte[] certificateVerifyHash)
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
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)