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
cryptoTlsCryptosrpIdentityManagerTlsSrpIdentityManager
Fields
m_srpIdentity
protected byte[] m_srpIdentity
Field Value
- byte[]
m_srpIdentityManager
protected readonly TlsSrpIdentityManager m_srpIdentityManager
Field Value
m_srpLoginParameters
protected TlsSrpLoginParameters m_srpLoginParameters
Field Value
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
GetDsaSignerCredentials()
protected virtual TlsCredentialedSigner GetDsaSignerCredentials()
Returns
Exceptions
GetRsaSignerCredentials()
protected virtual TlsCredentialedSigner GetRsaSignerCredentials()
Returns
Exceptions
GetSelectedCipherSuite()
public override int GetSelectedCipherSuite()
Returns
Exceptions
GetSrpLoginParameters()
public override TlsSrpLoginParameters GetSrpLoginParameters()
Returns
Exceptions
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
clientExtensionsIDictionary<int, byte[]>(Int32 -> byte[])