Allow Transports to express whether they provide message integrity protection
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 8 Jan 2008 11:19:49 +0000 (11:19 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 8 Jan 2008 11:19:49 +0000 (11:19 +0000)
Allow bindings to determine if, given a current message context, a message would have confidentiality and message integrity protection

git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2525 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

test/edu/internet2/middleware/shibboleth/idp/system/conf1/SAML1ArtifactResolutionTest.java
test/edu/internet2/middleware/shibboleth/idp/system/conf1/SAML1AttributeQueryTestCase.java
test/edu/internet2/middleware/shibboleth/idp/system/conf1/SAML2ArtifactResolutionTest.java
test/edu/internet2/middleware/shibboleth/idp/system/conf1/SAML2AttributeQueryTestCase.java
test/edu/internet2/middleware/shibboleth/idp/system/conf1/SAML2SSOTestCase.java
test/edu/internet2/middleware/shibboleth/idp/system/conf1/ShibbolethSSOTestCase.java

index 96fb848..c4d6593 100644 (file)
@@ -66,7 +66,7 @@ public class SAML1ArtifactResolutionTest extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
 
         String response = servletResponse.getContentAsString();
@@ -92,7 +92,7 @@ public class SAML1ArtifactResolutionTest extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
 
         String response = servletResponse.getContentAsString();
index ac1ad23..8f324a3 100644 (file)
@@ -64,7 +64,7 @@ public class SAML1AttributeQueryTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
 
         String response = servletResponse.getContentAsString();
@@ -91,7 +91,7 @@ public class SAML1AttributeQueryTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
             
         String response = servletResponse.getContentAsString();
index 45f23e5..45e8bbb 100644 (file)
@@ -70,7 +70,7 @@ public class SAML2ArtifactResolutionTest extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
 
         String response = servletResponse.getContentAsString();
@@ -97,7 +97,7 @@ public class SAML2ArtifactResolutionTest extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
         String response = servletResponse.getContentAsString();
         assertTrue(response.contains("urn:oasis:names:tc:SAML:2.0:status:Success"));
index f9a9a94..a42a4e4 100644 (file)
@@ -65,7 +65,7 @@ public class SAML2AttributeQueryTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
 
         String response = servletResponse.getContentAsString();
@@ -92,7 +92,7 @@ public class SAML2AttributeQueryTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
             
         String response = servletResponse.getContentAsString();
index b4c985c..4e7eb8e 100644 (file)
@@ -56,7 +56,7 @@ public class SAML2SSOTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
 
         HttpSession session = servletRequest.getSession();
@@ -90,7 +90,7 @@ public class SAML2SSOTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
 
         String response = servletResponse.getContentAsString();
@@ -111,7 +111,7 @@ public class SAML2SSOTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         try {
             handler.processRequest(profileRequest, profileResponse);
             fail("Request processing expected to due to lack of configured SAML 2 SSO profile");
index 79a7073..c0d87de 100644 (file)
@@ -48,7 +48,7 @@ public class ShibbolethSSOTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
 
         HttpSession session = servletRequest.getSession();
@@ -84,7 +84,7 @@ public class ShibbolethSSOTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         handler.processRequest(profileRequest, profileResponse);
 
         String response = servletResponse.getContentAsString();
@@ -107,7 +107,7 @@ public class ShibbolethSSOTestCase extends BaseConf1TestCase {
 
         // Process request
         HTTPInTransport profileRequest = new HttpServletRequestAdapter(servletRequest);
-        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse);
+        HTTPOutTransport profileResponse = new HttpServletResponseAdapter(servletResponse, false);
         try {
             handler.processRequest(profileRequest, profileResponse);
             fail("Request processing expected to due to lack of configured Shib SSO profile");