Class DtlsServerProtocol
- Namespace
- Org.BouncyCastle.Tls
- Assembly
- BouncyCastle.Cryptography.dll
public class DtlsServerProtocol : DtlsProtocol
- Inheritance
-
DtlsServerProtocol
- Inherited Members
-
Constructors
DtlsServerProtocol()
public DtlsServerProtocol()
Fields
m_verifyRequests
protected bool m_verifyRequests
Field Value
- bool
Properties
VerifyRequests
public virtual bool VerifyRequests { get; set; }
Property Value
- bool
Methods
Accept(TlsServer, DatagramTransport)
public virtual DtlsTransport Accept(TlsServer server, DatagramTransport transport)
Parameters
server TlsServer
transport DatagramTransport
Returns
- DtlsTransport
Exceptions
- IOException
Accept(TlsServer, DatagramTransport, DtlsRequest)
public virtual DtlsTransport Accept(TlsServer server, DatagramTransport transport, DtlsRequest request)
Parameters
server TlsServer
transport DatagramTransport
request DtlsRequest
Returns
- DtlsTransport
Exceptions
- IOException
CancelSession(ServerHandshakeState)
protected virtual void CancelSession(DtlsServerProtocol.ServerHandshakeState state)
Parameters
state DtlsServerProtocol.ServerHandshakeState
EstablishSession(ServerHandshakeState, TlsSession)
protected virtual bool EstablishSession(DtlsServerProtocol.ServerHandshakeState state, TlsSession sessionToResume)
Parameters
state DtlsServerProtocol.ServerHandshakeState
sessionToResume TlsSession
Returns
- bool
ExpectCertificateVerifyMessage(ServerHandshakeState)
protected virtual bool ExpectCertificateVerifyMessage(DtlsServerProtocol.ServerHandshakeState state)
Parameters
state DtlsServerProtocol.ServerHandshakeState
Returns
- bool
GenerateCertificateRequest(ServerHandshakeState, CertificateRequest)
protected virtual byte[] GenerateCertificateRequest(DtlsServerProtocol.ServerHandshakeState state, CertificateRequest certificateRequest)
Parameters
state DtlsServerProtocol.ServerHandshakeState
certificateRequest CertificateRequest
Returns
- byte[]
Exceptions
- IOException
GenerateCertificateStatus(ServerHandshakeState, CertificateStatus)
protected virtual byte[] GenerateCertificateStatus(DtlsServerProtocol.ServerHandshakeState state, CertificateStatus certificateStatus)
Parameters
state DtlsServerProtocol.ServerHandshakeState
certificateStatus CertificateStatus
Returns
- byte[]
Exceptions
- IOException
GenerateNewSessionTicket(ServerHandshakeState, NewSessionTicket)
protected virtual byte[] GenerateNewSessionTicket(DtlsServerProtocol.ServerHandshakeState state, NewSessionTicket newSessionTicket)
Parameters
state DtlsServerProtocol.ServerHandshakeState
newSessionTicket NewSessionTicket
Returns
- byte[]
Exceptions
- IOException
InvalidateSession(ServerHandshakeState)
protected virtual void InvalidateSession(DtlsServerProtocol.ServerHandshakeState state)
Parameters
state DtlsServerProtocol.ServerHandshakeState
NotifyClientCertificate(ServerHandshakeState, Certificate)
protected virtual void NotifyClientCertificate(DtlsServerProtocol.ServerHandshakeState state, Certificate clientCertificate)
Parameters
state DtlsServerProtocol.ServerHandshakeState
clientCertificate Certificate
Exceptions
- IOException
ProcessCertificateVerify(ServerHandshakeState, byte[], TlsHandshakeHash)
protected virtual void ProcessCertificateVerify(DtlsServerProtocol.ServerHandshakeState state, byte[] body, TlsHandshakeHash handshakeHash)
Parameters
state DtlsServerProtocol.ServerHandshakeState
body byte[]
handshakeHash TlsHandshakeHash
Exceptions
- IOException
ProcessClientCertificate(ServerHandshakeState, byte[])
protected virtual void ProcessClientCertificate(DtlsServerProtocol.ServerHandshakeState state, byte[] body)
Parameters
state DtlsServerProtocol.ServerHandshakeState
body byte[]
Exceptions
- IOException
ProcessClientHello(ServerHandshakeState, ClientHello)
protected virtual void ProcessClientHello(DtlsServerProtocol.ServerHandshakeState state, ClientHello clientHello)
Parameters
state DtlsServerProtocol.ServerHandshakeState
clientHello ClientHello
Exceptions
- IOException
ProcessClientHello(ServerHandshakeState, byte[])
protected virtual void ProcessClientHello(DtlsServerProtocol.ServerHandshakeState state, byte[] body)
Parameters
state DtlsServerProtocol.ServerHandshakeState
body byte[]
Exceptions
- IOException
ProcessClientKeyExchange(ServerHandshakeState, byte[])
protected virtual void ProcessClientKeyExchange(DtlsServerProtocol.ServerHandshakeState state, byte[] body)
Parameters
state DtlsServerProtocol.ServerHandshakeState
body byte[]
Exceptions
- IOException
ProcessClientSupplementalData(ServerHandshakeState, byte[])
protected virtual void ProcessClientSupplementalData(DtlsServerProtocol.ServerHandshakeState state, byte[] body)
Parameters
state DtlsServerProtocol.ServerHandshakeState
body byte[]
Exceptions
- IOException