Package org.bouncycastle.crypto.tls
Class DTLSServerProtocol
- java.lang.Object
-
- org.bouncycastle.crypto.tls.DTLSProtocol
-
- org.bouncycastle.crypto.tls.DTLSServerProtocol
-
public class DTLSServerProtocol extends DTLSProtocol
Deprecated.Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DTLSServerProtocol.ServerHandshakeState
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description protected boolean
verifyRequests
Deprecated.-
Fields inherited from class org.bouncycastle.crypto.tls.DTLSProtocol
secureRandom
-
-
Constructor Summary
Constructors Constructor Description DTLSServerProtocol(java.security.SecureRandom secureRandom)
Deprecated.
-
Method Summary
-
Methods inherited from class org.bouncycastle.crypto.tls.DTLSProtocol
applyMaxFragmentLengthExtension, evaluateMaxFragmentLengthExtension, generateCertificate, generateSupplementalData, processFinished, validateSelectedCipherSuite
-
-
-
-
Method Detail
-
getVerifyRequests
public boolean getVerifyRequests()
Deprecated.
-
setVerifyRequests
public void setVerifyRequests(boolean verifyRequests)
Deprecated.
-
accept
public DTLSTransport accept(TlsServer server, DatagramTransport transport) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
abortServerHandshake
protected void abortServerHandshake(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.crypto.tls.DTLSRecordLayer recordLayer, short alertDescription)
Deprecated.
-
serverHandshake
protected DTLSTransport serverHandshake(DTLSServerProtocol.ServerHandshakeState state, org.bouncycastle.crypto.tls.DTLSRecordLayer recordLayer) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
generateCertificateRequest
protected byte[] generateCertificateRequest(DTLSServerProtocol.ServerHandshakeState state, CertificateRequest certificateRequest) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
generateCertificateStatus
protected byte[] generateCertificateStatus(DTLSServerProtocol.ServerHandshakeState state, CertificateStatus certificateStatus) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
generateNewSessionTicket
protected byte[] generateNewSessionTicket(DTLSServerProtocol.ServerHandshakeState state, NewSessionTicket newSessionTicket) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
generateServerHello
protected byte[] generateServerHello(DTLSServerProtocol.ServerHandshakeState state) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
invalidateSession
protected void invalidateSession(DTLSServerProtocol.ServerHandshakeState state)
Deprecated.
-
notifyClientCertificate
protected void notifyClientCertificate(DTLSServerProtocol.ServerHandshakeState state, Certificate clientCertificate) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
processClientCertificate
protected void processClientCertificate(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
processCertificateVerify
protected void processCertificateVerify(DTLSServerProtocol.ServerHandshakeState state, byte[] body, TlsHandshakeHash prepareFinishHash) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
processClientHello
protected void processClientHello(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
processClientKeyExchange
protected void processClientKeyExchange(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
processClientSupplementalData
protected void processClientSupplementalData(DTLSServerProtocol.ServerHandshakeState state, byte[] body) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
expectCertificateVerifyMessage
protected boolean expectCertificateVerifyMessage(DTLSServerProtocol.ServerHandshakeState state)
Deprecated.
-
-