Java: Added a session handler with authentication capability.
[doldaconnect.git] / lib / java / dolda / dolcon / Authenticator.java
diff --git a/lib/java/dolda/dolcon/Authenticator.java b/lib/java/dolda/dolcon/Authenticator.java
new file mode 100644 (file)
index 0000000..b9e9cfe
--- /dev/null
@@ -0,0 +1,10 @@
+package dolda.dolcon;
+
+import dolda.dolcon.protocol.Command;
+import dolda.dolcon.protocol.Response;
+import java.util.List;
+
+public interface Authenticator {
+    public String handles(List<String> name);
+    public Command step(Response resp) throws AuthException, ProtocolException, InterruptedException;
+}