[java-identity-provider COMMIT] in /trunk/idp-saml-impl/src: main/java/net/shibboleth/idp/saml/impl/profile/IdpInitia...

noreply at shibboleth.net noreply at shibboleth.net
Fri Mar 16 13:37:31 GMT 2012


Author: lajoie
Date: Fri Mar 16 13:37:31 2012
New Revision: 4122

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4122&view=rev
Log:
Fix more compilation errors

Modified:
    trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitiatedSsoRequestMessageDecoder.java
    trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml1XmlObjectAttributeEncoderTest.java
    trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml2XmlObjectAttributeEncoderTest.java

Modified: trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitiatedSsoRequestMessageDecoder.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitiatedSsoRequestMessageDecoder.java?rev=4122&r1=4121&r2=4122&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitiatedSsoRequestMessageDecoder.java (original)
+++ trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitiatedSsoRequestMessageDecoder.java Fri Mar 16 13:37:31 2012
@@ -60,7 +60,7 @@
     public static final String TIME_PARAM = "time";
 
     /** {@inheritDoc} */
-    public void decode() throws MessageDecodingException {
+    protected void doDecode() throws MessageDecodingException {
         IdpInitatedSsoRequest authnRequest =
                 new IdpInitatedSsoRequest(getEntityId(getHttpServletRequest()), getAcsUrl(getHttpServletRequest()),
                         getTarget(getHttpServletRequest()), getTime(getHttpServletRequest()));
@@ -73,7 +73,7 @@
         // msgMetadata.setMessageId(messageId);
         msgMetadata.setMessageIssueInstant(authnRequest.getTime());
         msgMetadata.setMessageIssuer(authnRequest.getEntityId());
-        
+
         messageContext.addSubcontext(msgMetadata);
 
         setMessageContext(messageContext);

Modified: trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml1XmlObjectAttributeEncoderTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml1XmlObjectAttributeEncoderTest.java?rev=4122&r1=4121&r2=4122&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml1XmlObjectAttributeEncoderTest.java (original)
+++ trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml1XmlObjectAttributeEncoderTest.java Fri Mar 16 13:37:31 2012
@@ -21,6 +21,7 @@
 import java.util.List;
 
 import net.shibboleth.idp.attribute.AttributeEncodingException;
+import net.shibboleth.idp.attribute.StringAttributeValue;
 
 import org.opensaml.core.config.InitializationException;
 import org.opensaml.core.config.InitializationService;
@@ -62,7 +63,7 @@
         final net.shibboleth.idp.attribute.Attribute inputAttribute;
 
         inputAttribute = new net.shibboleth.idp.attribute.Attribute(ATTR_NAME);
-        inputAttribute.setValues(Lists.newArrayList((Object) value));
+        inputAttribute.getValues().add(new StringAttributeValue(value));
         try {
             return encoder.encode(inputAttribute);
         } catch (AttributeEncodingException e) {

Modified: trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml2XmlObjectAttributeEncoderTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml2XmlObjectAttributeEncoderTest.java?rev=4122&r1=4121&r2=4122&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml2XmlObjectAttributeEncoderTest.java (original)
+++ trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/attribute/encoding/Saml2XmlObjectAttributeEncoderTest.java Fri Mar 16 13:37:31 2012
@@ -21,6 +21,7 @@
 import java.util.List;
 
 import net.shibboleth.idp.attribute.AttributeEncodingException;
+import net.shibboleth.idp.attribute.StringAttributeValue;
 
 import org.opensaml.core.config.InitializationException;
 import org.opensaml.core.config.InitializationService;
@@ -62,7 +63,7 @@
         final net.shibboleth.idp.attribute.Attribute inputAttribute;
 
         inputAttribute = new net.shibboleth.idp.attribute.Attribute(ATTR_NAME);
-        inputAttribute.setValues(Lists.newArrayList((Object) value));
+        inputAttribute.getValues().add(new StringAttributeValue(value));
         try {
             return encoder.encode(inputAttribute);
         } catch (AttributeEncodingException e) {



More information about the commits mailing list