Table of Contents

Class SrpTlsServer

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll
public class SrpTlsServer : AbstractTlsServer, TlsServer, TlsPeer
Inheritance
SrpTlsServer
Implements
Inherited Members

Constructors

SrpTlsServer(TlsCrypto, TlsSrpIdentityManager)

public SrpTlsServer(TlsCrypto crypto, TlsSrpIdentityManager srpIdentityManager)

Parameters

crypto TlsCrypto
srpIdentityManager TlsSrpIdentityManager

Fields

m_srpIdentity

protected byte[] m_srpIdentity

Field Value

byte[]

m_srpIdentityManager

protected readonly TlsSrpIdentityManager m_srpIdentityManager

Field Value

TlsSrpIdentityManager

m_srpLoginParameters

protected TlsSrpLoginParameters m_srpLoginParameters

Field Value

TlsSrpLoginParameters

Methods

GetCredentials()

Return server credentials to use.

public override TlsCredentials GetCredentials()

Returns

TlsCredentials

a TlsCredentials object or null for anonymous key exchanges.

Remarks

The returned value may be null, or else it MUST implement exactly one of TlsCredentialedAgreement, TlsCredentialedDecryptor, or TlsCredentialedSigner, depending on the key exchange that was negotiated.

Exceptions

IOException

GetDsaSignerCredentials()

protected virtual TlsCredentialedSigner GetDsaSignerCredentials()

Returns

TlsCredentialedSigner

Exceptions

IOException

GetRsaSignerCredentials()

protected virtual TlsCredentialedSigner GetRsaSignerCredentials()

Returns

TlsCredentialedSigner

Exceptions

IOException

GetSelectedCipherSuite()

public override int GetSelectedCipherSuite()

Returns

int

Exceptions

IOException

GetSrpLoginParameters()

public override TlsSrpLoginParameters GetSrpLoginParameters()

Returns

TlsSrpLoginParameters

Exceptions

IOException

GetSupportedCipherSuites()

protected override int[] GetSupportedCipherSuites()

Returns

int[]

GetSupportedVersions()

Get the ProtocolVersion values that are supported by this peer.

protected override ProtocolVersion[] GetSupportedVersions()

Returns

ProtocolVersion[]

an array of supported ProtocolVersion values.

Remarks

WARNING: Mixing DTLS and TLS versions in the returned array is currently NOT supported. Use a separate (sub-)class for each case.

ProcessClientExtensions(IDictionary<int, byte[]>)

public override void ProcessClientExtensions(IDictionary<int, byte[]> clientExtensions)

Parameters

clientExtensions IDictionary<int, byte[]>

(Int32 -> byte[])

Exceptions

IOException