summary refs log tree commit diff
path: root/crypto/src/tls/TlsSrpLoginParameters.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/TlsSrpLoginParameters.cs')
-rw-r--r--crypto/src/tls/TlsSrpLoginParameters.cs44
1 files changed, 44 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsSrpLoginParameters.cs b/crypto/src/tls/TlsSrpLoginParameters.cs
new file mode 100644
index 000000000..2dda942a3
--- /dev/null
+++ b/crypto/src/tls/TlsSrpLoginParameters.cs
@@ -0,0 +1,44 @@
+using System;
+
+using Org.BouncyCastle.Math;
+using Org.BouncyCastle.Tls.Crypto;
+using Org.BouncyCastle.Utilities;
+
+namespace Org.BouncyCastle.Tls
+{
+    public class TlsSrpLoginParameters
+    {
+        protected byte[] m_identity;
+        protected TlsSrpConfig m_srpConfig;
+        protected BigInteger m_verifier;
+        protected byte[] m_salt;
+
+        public TlsSrpLoginParameters(byte[] identity, TlsSrpConfig srpConfig, BigInteger verifier, byte[] salt)
+        {
+            this.m_identity = Arrays.Clone(identity);
+            this.m_srpConfig = srpConfig;
+            this.m_verifier = verifier;
+            this.m_salt = Arrays.Clone(salt);
+        }
+
+        public virtual TlsSrpConfig Config
+        {
+            get { return m_srpConfig; }
+        }
+
+        public virtual byte[] Identity
+        {
+            get { return m_identity; }
+        }
+
+        public virtual byte[] Salt
+        {
+            get { return m_salt; }
+        }
+
+        public virtual BigInteger Verifier
+        {
+            get { return m_verifier; }
+        }
+    }
+}