Rename remote auth interfaces
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / RemoteAuthRequest.java
diff --git a/org.argeo.cms/src/org/argeo/cms/auth/RemoteAuthRequest.java b/org.argeo.cms/src/org/argeo/cms/auth/RemoteAuthRequest.java
new file mode 100644 (file)
index 0000000..2d1d14b
--- /dev/null
@@ -0,0 +1,25 @@
+package org.argeo.cms.auth;
+
+import java.util.Locale;
+
+/** Transitional interface to decouple from the Servlet API. */
+public interface RemoteAuthRequest {
+       RemoteAuthSession getSession();
+
+       RemoteAuthSession createSession();
+
+       Locale getLocale();
+
+       Object getAttribute(String key);
+
+       void setAttribute(String key, Object object);
+
+       String getHeader(String key);
+
+       String getRemoteAddr();
+
+       int getLocalPort();
+
+       int getRemotePort();
+
+}