summary refs log tree commit diff
path: root/crypto/src/tls/TlsSrpConfigVerifier.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/TlsSrpConfigVerifier.cs')
-rw-r--r--crypto/src/tls/TlsSrpConfigVerifier.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsSrpConfigVerifier.cs b/crypto/src/tls/TlsSrpConfigVerifier.cs
new file mode 100644
index 000000000..e4d83ab24
--- /dev/null
+++ b/crypto/src/tls/TlsSrpConfigVerifier.cs
@@ -0,0 +1,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);
+    }
+}