Table of Contents

Class SrpTlsClient

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll
public class SrpTlsClient : AbstractTlsClient, TlsClient, TlsPeer
Inheritance
SrpTlsClient
Implements
Inherited Members

Constructors

SrpTlsClient(TlsCrypto, TlsSrpIdentity)

public SrpTlsClient(TlsCrypto crypto, TlsSrpIdentity srpIdentity)

Parameters

crypto TlsCrypto
srpIdentity TlsSrpIdentity

SrpTlsClient(TlsCrypto, byte[], byte[])

public SrpTlsClient(TlsCrypto crypto, byte[] identity, byte[] password)

Parameters

crypto TlsCrypto
identity byte[]
password byte[]

Fields

m_srpIdentity

protected readonly TlsSrpIdentity m_srpIdentity

Field Value

TlsSrpIdentity

Properties

RequireSrpServerExtension

protected virtual bool RequireSrpServerExtension { get; }

Property Value

bool

Methods

GetAuthentication()

public override TlsAuthentication GetAuthentication()

Returns

TlsAuthentication

Exceptions

IOException

GetClientExtensions()

public override IDictionary<int, byte[]> GetClientExtensions()

Returns

IDictionary<int, byte[]>

Exceptions

IOException

GetSrpIdentity()

public override TlsSrpIdentity GetSrpIdentity()

Returns

TlsSrpIdentity

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.

ProcessServerExtensions(IDictionary<int, byte[]>)

public override void ProcessServerExtensions(IDictionary<int, byte[]> serverExtensions)

Parameters

serverExtensions IDictionary<int, byte[]>

Exceptions

IOException