[java-identity-provider COMMIT] in /trunk/idp-saml-api/src: main/java/net/shibboleth/idp/saml/profile/config/Abstract...

noreply at shibboleth.net noreply at shibboleth.net
Tue Dec 17 20:01:03 EST 2013


Author: scantor
Date: Tue Dec 17 20:01:03 2013
New Revision: 5049

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5049&view=rev
Log:
Clean up some method names, and port over the signed request option.

Modified:
    trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/AbstractSAMLProfileConfiguration.java
    trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/SAMLProfileConfiguration.java
    trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/saml2/BrowserSSOProfileConfiguration.java
    trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/saml2/ECPProfileConfiguration.java
    trunk/idp-saml-api/src/test/java/net/shibboleth/idp/saml/profile/config/AbstractSAMLProfileConfigurationTest.java
    trunk/idp-saml-api/src/test/java/net/shibboleth/idp/saml/profile/config/saml2/BrowserSSOProfileConfigurationTest.java

Modified: trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/AbstractSAMLProfileConfiguration.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/AbstractSAMLProfileConfiguration.java?rev=5049&r1=5048&r2=5049&view=diff
==============================================================================
--- trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/AbstractSAMLProfileConfiguration.java (original)
+++ trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/AbstractSAMLProfileConfiguration.java Tue Dec 17 20:01:03 2013
@@ -141,7 +141,7 @@
     }
     
     /** {@inheritDoc} */
-    public boolean isIncludeConditionsNotBefore() {
+    public boolean includeConditionsNotBefore() {
         return includeConditionsNotBefore;
     }
     

Modified: trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/SAMLProfileConfiguration.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/SAMLProfileConfiguration.java?rev=5049&r1=5048&r2=5049&view=diff
==============================================================================
--- trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/SAMLProfileConfiguration.java (original)
+++ trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/SAMLProfileConfiguration.java Tue Dec 17 20:01:03 2013
@@ -75,7 +75,7 @@
      * 
      * @return  whether to include a NotBefore attribute in the Conditions of generated assertions
      */
-    public boolean isIncludeConditionsNotBefore();
+    public boolean includeConditionsNotBefore();
     
     /**
      * Get the associated {@link SAMLArtifactConfiguration} for the profile, if any.

Modified: trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/saml2/BrowserSSOProfileConfiguration.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/saml2/BrowserSSOProfileConfiguration.java?rev=5049&r1=5048&r2=5049&view=diff
==============================================================================
--- trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/saml2/BrowserSSOProfileConfiguration.java (original)
+++ trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/profile/config/saml2/BrowserSSOProfileConfiguration.java Tue Dec 17 20:01:03 2013
@@ -33,6 +33,9 @@
     /** Whether responses to the authentication request should include an attribute statement. Default value: true */
     private boolean includeAttributeStatement;
 
+    /** Whether the response endpoint should be validated if the request is signed. */
+    private boolean skipEndpointValidationWhenSigned;
+    
     /**
      * The maximum amount of time, in milliseconds, the service provider should maintain a session for the user. A value
      * of 0 or less indicates no cap is put on the SP's session lifetime. Default value: 0
@@ -56,6 +59,7 @@
         super(profileId);
         
         includeAttributeStatement = true;
+        skipEndpointValidationWhenSigned = false;
         maximumSPSessionLifetime = 0;
         allowingDelegation = false;
     }
@@ -78,6 +82,24 @@
         includeAttributeStatement = include;
     }
 
+    /**
+     * Get whether the response endpoint should be validated if the request is signed.
+     * 
+     * @return whether the response endpoint should be validated if the request is signed
+     */
+    public boolean skipEndpointValidationWhenSigned() {
+        return skipEndpointValidationWhenSigned;
+    }
+
+    /**
+     * Set whether the response endpoint should be validated if the request is signed.
+     * 
+     * @param skip whether the response endpoint should be validated if the request is signed
+     */
+    public void setSkipEndpointValidationWhenSigned(final boolean skip) {
+        skipEndpointValidationWhenSigned = skip;
+    }
+    
     /**

[... 65 lines stripped ...]


More information about the commits mailing list