Author: anil.saldhana(a)jboss.com
Date: 2011-03-31 11:49:35 -0400 (Thu, 31 Mar 2011)
New Revision: 849
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/ExternalAuthenticator.java
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/FacebookPrincipal.java
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/OpenIdPrincipal.java
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/Requests.java
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/SeamSamlPrincipal.java
Log:
make serializable
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/ExternalAuthenticator.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/ExternalAuthenticator.java 2011-03-24
15:40:32 UTC (rev 848)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/ExternalAuthenticator.java 2011-03-31
15:49:35 UTC (rev 849)
@@ -21,6 +21,7 @@
*/
package org.picketlink.identity.seam.federation;
+import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
@@ -47,8 +48,10 @@
@AutoCreate
@Import("org.picketlink.identity.seam.federation")
@Scope(ScopeType.PAGE)
-public class ExternalAuthenticator
-{
+public class ExternalAuthenticator implements Serializable
+{
+ private static final long serialVersionUID = 2993545665152121656L;
+
private String returnUrl;
private String openId;
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/FacebookPrincipal.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/FacebookPrincipal.java 2011-03-24
15:40:32 UTC (rev 848)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/FacebookPrincipal.java 2011-03-31
15:49:35 UTC (rev 849)
@@ -21,14 +21,17 @@
*/
package org.picketlink.identity.seam.federation;
+import java.io.Serializable;
import java.security.Principal;
/**
* @author Marcel Kolsteren
* @since Sep 26, 2010
*/
-public class FacebookPrincipal implements Principal
-{
+public class FacebookPrincipal implements Principal, Serializable
+{
+ private static final long serialVersionUID = 8086364702249670998L;
+
private String accessToken;
private String id;
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/OpenIdPrincipal.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/OpenIdPrincipal.java 2011-03-24
15:40:32 UTC (rev 848)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/OpenIdPrincipal.java 2011-03-31
15:49:35 UTC (rev 849)
@@ -21,6 +21,7 @@
*/
package org.picketlink.identity.seam.federation;
+import java.io.Serializable;
import java.net.URL;
import java.security.Principal;
import java.util.List;
@@ -30,8 +31,10 @@
* @author Marcel Kolsteren
* @since Jan 30, 2010
*/
-public class OpenIdPrincipal implements Principal
-{
+public class OpenIdPrincipal implements Principal, Serializable
+{
+ private static final long serialVersionUID = 4404673070085740561L;
+
private String identifier;
private URL openIdProvider;
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/Requests.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/Requests.java 2011-03-24
15:40:32 UTC (rev 848)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/Requests.java 2011-03-31
15:49:35 UTC (rev 849)
@@ -22,6 +22,7 @@
package org.picketlink.identity.seam.federation;
import java.io.IOException;
+import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
@@ -43,8 +44,10 @@
@Name("org.picketlink.identity.seam.federation.requests")
@AutoCreate
@Scope(ScopeType.SESSION)
-public class Requests
-{
+public class Requests implements Serializable
+{
+ private static final long serialVersionUID = 2392595885426155460L;
+
private Map<String, RequestContext> requests = new HashMap<String,
RequestContext>();
@Logger
Modified:
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/SeamSamlPrincipal.java
===================================================================
---
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/SeamSamlPrincipal.java 2011-03-24
15:40:32 UTC (rev 848)
+++
picketlink-seam/trunk/picketlink-seam/src/main/java/org/picketlink/identity/seam/federation/SeamSamlPrincipal.java 2011-03-31
15:49:35 UTC (rev 849)
@@ -21,6 +21,7 @@
*/
package org.picketlink.identity.seam.federation;
+import java.io.Serializable;
import java.security.Principal;
import java.util.LinkedList;
import java.util.List;
@@ -35,8 +36,10 @@
* @author Marcel Kolsteren
* @since Jan 28, 2010
*/
-public class SeamSamlPrincipal implements Principal
-{
+public class SeamSamlPrincipal implements Principal, Serializable
+{
+ private static final long serialVersionUID = 507586079806563349L;
+
private NameIDType nameId;
private SamlIdentityProvider identityProvider;