summary refs log tree commit diff
path: root/crypto/src/tls/TlsSrpConfigVerifier.cs
blob: e4d83ab24027a47b04ee89ee9995bcbfce2af16d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;

using Org.BouncyCastle.Tls.Crypto;

namespace Org.BouncyCastle.Tls
{
    /// <summary>Interface for verifying SRP config needs to conform to.</summary>
    public interface TlsSrpConfigVerifier
    {
        /// <summary>Check whether the given SRP configuration is acceptable for use.</summary>
        /// <param name="srpConfig">the <see cref="TlsSrpConfig"/> to check.</param>
        /// <returns>true if (and only if) the specified configuration is acceptable.</returns>
        bool Accept(TlsSrpConfig srpConfig);
    }
}