From: lajoie Date: Sun, 12 Nov 2006 22:56:10 +0000 (+0000) Subject: Stubs for SAML 1, 2, Shib 1, and ADFS profile handlers X-Git-Tag: v2.1.3~691 X-Git-Url: https://repo.niif.hu/gitweb/gitweb.cgi?p=java-idp.git;a=commitdiff_plain;h=368703c65f6e8a3beab1fd70d9851779492444d7;hp=3d8f097e0e713a3000154826afed6b580573fcb1 Stubs for SAML 1, 2, Shib 1, and ADFS profile handlers git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2071 ab3bd59b-922f-494d-bb5f-6f0a3c29deca --- 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 index 0000000..d36008e --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/ProfileHandler.java @@ -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 index 0000000..913d768 --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/ProfileRequestDispatcher.java @@ -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 index 0000000..640ac91 --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/adfs/SingleSignOn.java @@ -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 index 0000000..04a62ca --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ArtifactQuery.java @@ -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 index 0000000..2a64c0e --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/saml1/AttributeQuery.java @@ -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 index 0000000..3a0ee3f --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ShibbolethSSO.java @@ -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 index 0000000..2650867 --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/ArtifactResolution.java @@ -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 index 0000000..12e4657 --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/AttributeQuery.java @@ -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 index 0000000..0a1ca55 --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/AuthenticationRequest.java @@ -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 index 0000000..0514502 --- /dev/null +++ b/src/edu/internet2/middleware/shibboleth/idp/profile/saml2/LogoutRequest.java @@ -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