]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/src/org/argeo/cms/auth/RemoteAuthCallback.java
Rename remote auth interfaces
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / RemoteAuthCallback.java
diff --git a/org.argeo.cms/src/org/argeo/cms/auth/RemoteAuthCallback.java b/org.argeo.cms/src/org/argeo/cms/auth/RemoteAuthCallback.java
new file mode 100644 (file)
index 0000000..d19bac8
--- /dev/null
@@ -0,0 +1,35 @@
+package org.argeo.cms.auth;
+
+import javax.security.auth.callback.Callback;
+
+/** Retrieves credentials from an HTTP request. */
+public class RemoteAuthCallback implements Callback {
+       private RemoteAuthRequest request;
+       private RemoteAuthResponse response;
+       private RemoteAuthSession httpSession;
+
+       public RemoteAuthRequest getRequest() {
+               return request;
+       }
+
+       public void setRequest(RemoteAuthRequest request) {
+               this.request = request;
+       }
+
+       public RemoteAuthResponse getResponse() {
+               return response;
+       }
+
+       public void setResponse(RemoteAuthResponse response) {
+               this.response = response;
+       }
+
+       public RemoteAuthSession getHttpSession() {
+               return httpSession;
+       }
+
+       public void setHttpSession(RemoteAuthSession httpSession) {
+               this.httpSession = httpSession;
+       }
+
+}