Author: anil.saldhana(a)jboss.com
Date: 2011-04-10 10:39:14 -0400 (Sun, 10 Apr 2011)
New Revision: 869
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/FacebookLoginReceiver.java
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/RequestContext.java
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/SamlMessageReceiver.java
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlEndpoint.java
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlIdentityProvider.java
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlService.java
Log:
make serializable
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/FacebookLoginReceiver.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/FacebookLoginReceiver.java 2011-04-06
17:35:18 UTC (rev 868)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/FacebookLoginReceiver.java 2011-04-10
14:39:14 UTC (rev 869)
@@ -77,7 +77,7 @@
throw new RuntimeException("Return URL parameter not found");
}
String authorizationCode = request.getParameter(OAuthConstants.CODE_PARAMETER);
- if (returnUrl == null)
+ if (authorizationCode == null)
{
throw new RuntimeException("Authorization code parameter not
found");
}
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/RequestContext.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/RequestContext.java 2011-04-06
17:35:18 UTC (rev 868)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/RequestContext.java 2011-04-10
14:39:14 UTC (rev 869)
@@ -21,6 +21,8 @@
*/
package org.picketlink.identity.seam.federation;
+import java.io.Serializable;
+
import org.picketlink.identity.seam.federation.configuration.SamlIdentityProvider;
/**
@@ -29,8 +31,10 @@
* @author Marcel Kolsteren
* @since Jan 17, 2010
*/
-public class RequestContext
-{
+public class RequestContext implements Serializable
+{
+ private static final long serialVersionUID = 6539143853969747782L;
+
private String id;
private SamlIdentityProvider identityProvider;
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/SamlMessageReceiver.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/SamlMessageReceiver.java 2011-04-06
17:35:18 UTC (rev 868)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/SamlMessageReceiver.java 2011-04-10
14:39:14 UTC (rev 869)
@@ -26,10 +26,6 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.JAXBException;
-import javax.xml.bind.Unmarshaller;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Import;
@@ -38,14 +34,12 @@
import org.jboss.seam.annotations.Name;
import org.jboss.seam.log.Log;
import org.jboss.seam.util.Base64;
-import org.picketlink.identity.federation.api.saml.v2.request.SAML2Request;
import org.picketlink.identity.federation.core.exceptions.ConfigurationException;
import org.picketlink.identity.federation.core.exceptions.ParsingException;
import org.picketlink.identity.federation.core.exceptions.ProcessingException;
import org.picketlink.identity.federation.core.parsers.saml.SAMLParser;
import org.picketlink.identity.federation.core.parsers.util.StaxParserUtil;
import org.picketlink.identity.federation.core.saml.v2.util.DocumentUtil;
-import org.picketlink.identity.federation.core.util.JAXBUtil;
import org.picketlink.identity.federation.newmodel.saml.v2.protocol.RequestAbstractType;
import org.picketlink.identity.federation.newmodel.saml.v2.protocol.StatusResponseType;
import org.picketlink.identity.federation.web.util.RedirectBindingUtil;
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlEndpoint.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlEndpoint.java 2011-04-06
17:35:18 UTC (rev 868)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlEndpoint.java 2011-04-10
14:39:14 UTC (rev 869)
@@ -21,14 +21,18 @@
*/
package org.picketlink.identity.seam.federation.configuration;
+import java.io.Serializable;
+
import org.picketlink.identity.federation.core.util.StringUtil;
/**
* @author Marcel Kolsteren
* @since Jan 24, 2010
*/
-public class SamlEndpoint
-{
+public class SamlEndpoint implements Serializable
+{
+ private static final long serialVersionUID = 561425093844469981L;
+
private Binding binding;
private String location;
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlIdentityProvider.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlIdentityProvider.java 2011-04-06
17:35:18 UTC (rev 868)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlIdentityProvider.java 2011-04-10
14:39:14 UTC (rev 869)
@@ -21,6 +21,7 @@
*/
package org.picketlink.identity.seam.federation.configuration;
+import java.io.Serializable;
import java.security.PublicKey;
import java.security.cert.X509Certificate;
import java.util.HashMap;
@@ -37,8 +38,10 @@
* @author Marcel Kolsteren
* @since Dec 31, 2009
*/
-public class SamlIdentityProvider
-{
+public class SamlIdentityProvider implements Serializable
+{
+ private static final long serialVersionUID = -8163737777583751528L;
+
private String entityId;
private Map<SamlProfile, SamlService> services = new HashMap<SamlProfile,
SamlService>();
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlService.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlService.java 2011-04-06
17:35:18 UTC (rev 868)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/configuration/SamlService.java 2011-04-10
14:39:14 UTC (rev 869)
@@ -21,6 +21,7 @@
*/
package org.picketlink.identity.seam.federation.configuration;
+import java.io.Serializable;
import java.net.URI;
import java.util.LinkedList;
import java.util.List;
@@ -32,8 +33,10 @@
* @author Marcel Kolsteren
* @since Jan 27, 2010
*/
-public class SamlService
-{
+public class SamlService implements Serializable
+{
+ private static final long serialVersionUID = -7539141845574287939L;
+
private SamlProfile profile;
private List<SamlEndpoint> serviceEndpoints = new
LinkedList<SamlEndpoint>();
Show replies by date