Stubs for SAML 1, 2, Shib 1, and ADFS profile handlers
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 12 Nov 2006 22:56:10 +0000 (22:56 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 12 Nov 2006 22:56:10 +0000 (22:56 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2071 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/profile/ProfileHandler.java [new file with mode: 0644]
src/edu/internet2/middleware/shibboleth/idp/profile/ProfileRequestDispatcher.java [new file with mode: 0644]
src/edu/internet2/middleware/shibboleth/idp/profile/adfs/SingleSignOn.java [new file with mode: 0644]
src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ArtifactQuery.java [new file with mode: 0644]
src/edu/internet2/middleware/shibboleth/idp/profile/saml1/AttributeQuery.java [new file with mode: 0644]
src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ShibbolethSSO.java [new file with mode: 0644]
src/edu/internet2/middleware/shibboleth/idp/profile/saml2/ArtifactResolution.java [new file with mode: 0644]
src/edu/internet2/middleware/shibboleth/idp/profile/saml2/AttributeQuery.java [new file with mode: 0644]
src/edu/internet2/middleware/shibboleth/idp/profile/saml2/AuthenticationRequest.java [new file with mode: 0644]
src/edu/internet2/middleware/shibboleth/idp/profile/saml2/LogoutRequest.java [new file with mode: 0644]

diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/ProfileHandler.java b/src/edu/internet2/middleware/shibboleth/idp/profile/ProfileHandler.java
new file mode 100644 (file)
index 0000000..d36008e
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * A processor for a communication profile supported by the IdP.
+ * 
+ * Profile handlers must be stateless and thread-safe as a single instance may be used to service every incoming request.
+ */
+public interface ProfileHandler {
+    
+    /**
+     * Processes an incoming request.
+     * 
+     * @param request the request
+     * @param response the response
+     * 
+     * @return true if this handler has processed the request, false if not
+     * 
+     * @throws ServletException throw if there was a problem while processing the request
+     */
+    public boolean processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException;
+}
\ No newline at end of file
diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/ProfileRequestDispatcher.java b/src/edu/internet2/middleware/shibboleth/idp/profile/ProfileRequestDispatcher.java
new file mode 100644 (file)
index 0000000..913d768
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile;
+
+import javax.servlet.http.HttpServlet;
+
+/**
+ * Servlet responsible for dispatching incoming requests to the appropriate {@link ProfileHandler}.
+ */
+public class ProfileRequestDispatcher extends HttpServlet {
+
+}
\ No newline at end of file
diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/adfs/SingleSignOn.java b/src/edu/internet2/middleware/shibboleth/idp/profile/adfs/SingleSignOn.java
new file mode 100644 (file)
index 0000000..640ac91
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile.adfs;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import edu.internet2.middleware.shibboleth.idp.profile.ProfileHandler;
+
+/**
+ * ADFS (Active Directory Federation Service) single sign-on profile handler
+ */
+public class SingleSignOn implements ProfileHandler {
+
+    /** {@inheritDoc} */
+    public boolean processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+}
\ No newline at end of file
diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ArtifactQuery.java b/src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ArtifactQuery.java
new file mode 100644 (file)
index 0000000..04a62ca
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile.saml1;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import edu.internet2.middleware.shibboleth.idp.profile.ProfileHandler;
+
+/**
+ * SAML 1 Artifact Query profile handler.
+ */
+public class ArtifactQuery implements ProfileHandler {
+
+    /** {@inheritDoc} */
+    public boolean processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+}
\ No newline at end of file
diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/saml1/AttributeQuery.java b/src/edu/internet2/middleware/shibboleth/idp/profile/saml1/AttributeQuery.java
new file mode 100644 (file)
index 0000000..2a64c0e
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile.saml1;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import edu.internet2.middleware.shibboleth.idp.profile.ProfileHandler;
+
+/**
+ * SAML 1 Attribute Query profile handler
+ */
+public class AttributeQuery implements ProfileHandler {
+
+    /** {@inheritDoc} */
+    public boolean processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+}
\ No newline at end of file
diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ShibbolethSSO.java b/src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ShibbolethSSO.java
new file mode 100644 (file)
index 0000000..3a0ee3f
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile.saml1;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import edu.internet2.middleware.shibboleth.idp.profile.ProfileHandler;
+
+/**
+ * Shibboleth, version 1.X, single sign-on profile handler
+ */
+public class ShibbolethSSO implements ProfileHandler {
+
+    /** {@inheritDoc} */
+    public boolean processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+}
\ No newline at end of file
diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/ArtifactResolution.java b/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/ArtifactResolution.java
new file mode 100644 (file)
index 0000000..2650867
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile.saml2;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import edu.internet2.middleware.shibboleth.idp.profile.ProfileHandler;
+
+/**
+ * SAML 2.0 Artifact resolution profile handler
+ */
+public class ArtifactResolution implements ProfileHandler {
+
+    /** {@inheritDoc} */
+    public boolean processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+}
\ No newline at end of file
diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/AttributeQuery.java b/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/AttributeQuery.java
new file mode 100644 (file)
index 0000000..12e4657
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile.saml2;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import edu.internet2.middleware.shibboleth.idp.profile.ProfileHandler;
+
+/**
+ * SAML 2.0 Attribute Query profile handler
+ */
+public class AttributeQuery implements ProfileHandler {
+
+    /** {@inheritDoc} */
+    public boolean processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+}
\ No newline at end of file
diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/AuthenticationRequest.java b/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/AuthenticationRequest.java
new file mode 100644 (file)
index 0000000..0a1ca55
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile.saml2;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import edu.internet2.middleware.shibboleth.idp.profile.ProfileHandler;
+
+/**
+ * SAML 2.0 Authentication Request profile handler
+ */
+public class AuthenticationRequest implements ProfileHandler {
+
+    /** {@inheritDoc} */
+    public boolean processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+}
\ No newline at end of file
diff --git a/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/LogoutRequest.java b/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/LogoutRequest.java
new file mode 100644 (file)
index 0000000..0514502
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package edu.internet2.middleware.shibboleth.idp.profile.saml2;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import edu.internet2.middleware.shibboleth.idp.profile.ProfileHandler;
+
+/**
+ * SAML 2.0 Logout Request profile handler
+ */
+public class LogoutRequest implements ProfileHandler {
+
+    /** {@inheritDoc} */
+    public boolean processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {
+        // TODO Auto-generated method stub
+        return false;
+    }
+}
\ No newline at end of file