summary refs log tree commit diff
path: root/crypto/src/tls/TlsPskIdentity.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/TlsPskIdentity.cs')
-rw-r--r--crypto/src/tls/TlsPskIdentity.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsPskIdentity.cs b/crypto/src/tls/TlsPskIdentity.cs
new file mode 100644
index 000000000..ae78872c3
--- /dev/null
+++ b/crypto/src/tls/TlsPskIdentity.cs
@@ -0,0 +1,16 @@
+using System;
+
+namespace Org.BouncyCastle.Tls
+{
+    /// <summary>Processor interface for a PSK identity.</summary>
+    public interface TlsPskIdentity
+    {
+        void SkipIdentityHint();
+
+        void NotifyIdentityHint(byte[] psk_identity_hint);
+
+        byte[] GetPskIdentity();
+
+        byte[] GetPsk();
+    }
+}