Class TlsServerProtocol
- Namespace
- Enterprises.Org.BouncyCastle.Crypto.Tls
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
public class TlsServerProtocol : TlsProtocol
- Inheritance
-
TlsServerProtocol
- Inherited Members
-
Constructors
TlsServerProtocol(SecureRandom)
public TlsServerProtocol(SecureRandom secureRandom)
Parameters
secureRandom SecureRandom
TlsServerProtocol(Stream, SecureRandom)
public TlsServerProtocol(Stream stream, SecureRandom secureRandom)
Parameters
stream Stream
secureRandom SecureRandom
TlsServerProtocol(Stream, Stream, SecureRandom)
public TlsServerProtocol(Stream input, Stream output, SecureRandom secureRandom)
Parameters
input Stream
output Stream
secureRandom SecureRandom
Fields
mCertificateRequest
protected CertificateRequest mCertificateRequest
Field Value
- CertificateRequest
mClientCertificateType
protected short mClientCertificateType
Field Value
- short
mKeyExchange
protected TlsKeyExchange mKeyExchange
Field Value
- TlsKeyExchange
mPrepareFinishHash
protected TlsHandshakeHash mPrepareFinishHash
Field Value
- TlsHandshakeHash
mServerCredentials
protected TlsCredentials mServerCredentials
Field Value
- TlsCredentials
mTlsServer
protected TlsServer mTlsServer
Field Value
- TlsServer
Properties
Context
protected override TlsContext Context { get; }
Property Value
- TlsContext
Peer
protected override TlsPeer Peer { get; }
Property Value
- TlsPeer
Methods
Accept(TlsServer)
public virtual void Accept(TlsServer tlsServer)
Parameters
tlsServer TlsServer
CleanupHandshake()
protected override void CleanupHandshake()
ExpectCertificateVerifyMessage()
protected virtual bool ExpectCertificateVerifyMessage()
Returns
- bool
HandleAlertWarningMessage(byte)
protected override void HandleAlertWarningMessage(byte alertDescription)
Parameters
alertDescription byte
HandleHandshakeMessage(byte, MemoryStream)
protected override void HandleHandshakeMessage(byte type, MemoryStream buf)
Parameters
type byte
buf MemoryStream
NotifyClientCertificate(Certificate)
protected virtual void NotifyClientCertificate(Certificate clientCertificate)
Parameters
clientCertificate Certificate
ReceiveCertificateMessage(MemoryStream)
protected virtual void ReceiveCertificateMessage(MemoryStream buf)
Parameters
buf MemoryStream
ReceiveCertificateVerifyMessage(MemoryStream)
protected virtual void ReceiveCertificateVerifyMessage(MemoryStream buf)
Parameters
buf MemoryStream
ReceiveClientHelloMessage(MemoryStream)
protected virtual void ReceiveClientHelloMessage(MemoryStream buf)
Parameters
buf MemoryStream
ReceiveClientKeyExchangeMessage(MemoryStream)
protected virtual void ReceiveClientKeyExchangeMessage(MemoryStream buf)
Parameters
buf MemoryStream
SendCertificateRequestMessage(CertificateRequest)
protected virtual void SendCertificateRequestMessage(CertificateRequest certificateRequest)
Parameters
certificateRequest CertificateRequest
SendCertificateStatusMessage(CertificateStatus)
protected virtual void SendCertificateStatusMessage(CertificateStatus certificateStatus)
Parameters
certificateStatus CertificateStatus
SendNewSessionTicketMessage(NewSessionTicket)
protected virtual void SendNewSessionTicketMessage(NewSessionTicket newSessionTicket)
Parameters
newSessionTicket NewSessionTicket
SendServerHelloDoneMessage()
protected virtual void SendServerHelloDoneMessage()
SendServerHelloMessage()
protected virtual void SendServerHelloMessage()
SendServerKeyExchangeMessage(byte[])
protected virtual void SendServerKeyExchangeMessage(byte[] serverKeyExchange)
Parameters
serverKeyExchange byte[]