Author: prabath
Date: Mon Jan  7 03:24:29 2008
New Revision: 11952

Log:

Constant modifications

Modified:
   
trunk/solutions/identity/modules/token-verifier-core/src/main/java/org/wso2/solutions/identity/openid/relyingparty/OpenIdConsumer.java

Modified: 
trunk/solutions/identity/modules/token-verifier-core/src/main/java/org/wso2/solutions/identity/openid/relyingparty/OpenIdConsumer.java
==============================================================================
--- 
trunk/solutions/identity/modules/token-verifier-core/src/main/java/org/wso2/solutions/identity/openid/relyingparty/OpenIdConsumer.java
      (original)
+++ 
trunk/solutions/identity/modules/token-verifier-core/src/main/java/org/wso2/solutions/identity/openid/relyingparty/OpenIdConsumer.java
      Mon Jan  7 03:24:29 2008
@@ -40,28 +40,28 @@
      */
     static {
 
-        attributes.put(IdentityConstants.OpenId.Attributes.EMAIL_NS,
-                IdentityConstants.OpenId.Attributes.EMAIL);
-        attributes.put(IdentityConstants.OpenId.Attributes.FIRST_NAME_NS,
-                IdentityConstants.OpenId.Attributes.FIRST_NAME);
-        attributes.put(IdentityConstants.OpenId.Attributes.LAST_NAME_NS,
-                IdentityConstants.OpenId.Attributes.LAST_NAME);
-        attributes.put(IdentityConstants.OpenId.Attributes.FIRST_NAME_NS,
-                IdentityConstants.OpenId.Attributes.FULL_NAME);
-        attributes.put(IdentityConstants.OpenId.Attributes.NICK_NAME_NS,
-                IdentityConstants.OpenId.Attributes.NICK_NAME);
-        attributes.put(IdentityConstants.OpenId.Attributes.PHONE_NS,
-                IdentityConstants.OpenId.Attributes.PHONE);
-        attributes.put(IdentityConstants.OpenId.Attributes.ADDRESS_NS,
-                IdentityConstants.OpenId.Attributes.ADDRESS);
-        attributes.put(IdentityConstants.OpenId.Attributes.CITY_NS,
-                IdentityConstants.OpenId.Attributes.CITY);
-        attributes.put(IdentityConstants.OpenId.Attributes.ZIP_CODE_NS,
-                IdentityConstants.OpenId.Attributes.ZIP_CODE);
-        attributes.put(IdentityConstants.OpenId.Attributes.COUNTRY_NS,
-                IdentityConstants.OpenId.Attributes.COUNTRY);
-        attributes.put(IdentityConstants.OpenId.Attributes.BLOG_NS,
-                IdentityConstants.OpenId.Attributes.BLOG);
+        attributes.put(IdentityConstants.OpenId.ExchangeAttributes.EMAIL_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.EMAIL);
+        
attributes.put(IdentityConstants.OpenId.ExchangeAttributes.FIRST_NAME_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.FIRST_NAME);
+        
attributes.put(IdentityConstants.OpenId.ExchangeAttributes.LAST_NAME_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.LAST_NAME);
+        
attributes.put(IdentityConstants.OpenId.ExchangeAttributes.FIRST_NAME_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.FULL_NAME);
+        
attributes.put(IdentityConstants.OpenId.ExchangeAttributes.NICK_NAME_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.NICK_NAME);
+        attributes.put(IdentityConstants.OpenId.ExchangeAttributes.PHONE_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.PHONE);
+        attributes.put(IdentityConstants.OpenId.ExchangeAttributes.ADDRESS_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.ADDRESS);
+        attributes.put(IdentityConstants.OpenId.ExchangeAttributes.CITY_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.CITY);
+        attributes.put(IdentityConstants.OpenId.ExchangeAttributes.ZIP_CODE_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.ZIP_CODE);
+        attributes.put(IdentityConstants.OpenId.ExchangeAttributes.COUNTRY_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.COUNTRY);
+        attributes.put(IdentityConstants.OpenId.ExchangeAttributes.BLOG_NS,
+                IdentityConstants.OpenId.ExchangeAttributes.BLOG);
     }
 
     /**
@@ -128,22 +128,22 @@
             SRegRequest sregReq = SRegRequest.createFetchRequest();
 
             // TODO: User should be able to what attributes he required.
-            sregReq.addAttribute(IdentityConstants.OpenId.Attributes.NICK_NAME,
+            
sregReq.addAttribute(IdentityConstants.OpenId.SimpleRegAttributes.NICK_NAME,
                     true);
-            sregReq.addAttribute(IdentityConstants.OpenId.Attributes.FULL_NAME,
+            
sregReq.addAttribute(IdentityConstants.OpenId.SimpleRegAttributes.FULL_NAME,
                     true);
-            sregReq.addAttribute(IdentityConstants.OpenId.Attributes.EMAIL,
+            
sregReq.addAttribute(IdentityConstants.OpenId.SimpleRegAttributes.EMAIL,
                     true);
-            sregReq.addAttribute(IdentityConstants.OpenId.Attributes.DOB, 
true);
-            sregReq.addAttribute(IdentityConstants.OpenId.Attributes.GENDER,
+            
sregReq.addAttribute(IdentityConstants.OpenId.SimpleRegAttributes.DOB, true);
+            
sregReq.addAttribute(IdentityConstants.OpenId.SimpleRegAttributes.GENDER,
                     true);
             sregReq.addAttribute(
-                    IdentityConstants.OpenId.Attributes.POSTAL_CODE, true);
-            sregReq.addAttribute(IdentityConstants.OpenId.Attributes.COUNTRY,
+                    IdentityConstants.OpenId.SimpleRegAttributes.POSTAL_CODE, 
true);
+            
sregReq.addAttribute(IdentityConstants.OpenId.SimpleRegAttributes.COUNTRY,
                     true);
-            sregReq.addAttribute(IdentityConstants.OpenId.Attributes.LANGUAGE,
+            
sregReq.addAttribute(IdentityConstants.OpenId.SimpleRegAttributes.LANGUAGE,
                     true);
-            sregReq.addAttribute(IdentityConstants.OpenId.Attributes.TIMEZONE,
+            
sregReq.addAttribute(IdentityConstants.OpenId.SimpleRegAttributes.TIMEZONE,
                     true);
             authReq.addExtension(sregReq);
 
@@ -212,49 +212,49 @@
                         .getExtension(IdentityConstants.OpenId.NS_SREG);
                 request
                         .setAttribute(
-                                IdentityConstants.OpenId.Attributes.NICK_NAME,
+                                
IdentityConstants.OpenId.SimpleRegAttributes.NICK_NAME,
                                 sregResp
-                                        
.getAttributeValue(IdentityConstants.OpenId.Attributes.NICK_NAME));
+                                        
.getAttributeValue(IdentityConstants.OpenId.SimpleRegAttributes.NICK_NAME));
                 request
                         .setAttribute(
-                                IdentityConstants.OpenId.Attributes.FULL_NAME,
+                                
IdentityConstants.OpenId.SimpleRegAttributes.FULL_NAME,
                                 sregResp
-                                        
.getAttributeValue(IdentityConstants.OpenId.Attributes.FULL_NAME));
+                                        
.getAttributeValue(IdentityConstants.OpenId.SimpleRegAttributes.FULL_NAME));
                 request
                         .setAttribute(
-                                IdentityConstants.OpenId.Attributes.EMAIL,
+                                
IdentityConstants.OpenId.SimpleRegAttributes.EMAIL,
                                 sregResp
-                                        
.getAttributeValue(IdentityConstants.OpenId.Attributes.EMAIL));
+                                        
.getAttributeValue(IdentityConstants.OpenId.SimpleRegAttributes.EMAIL));
                 request
                         .setAttribute(
-                                IdentityConstants.OpenId.Attributes.DOB,
+                                
IdentityConstants.OpenId.SimpleRegAttributes.DOB,
                                 sregResp
-                                        
.getAttributeValue(IdentityConstants.OpenId.Attributes.DOB));
+                                        
.getAttributeValue(IdentityConstants.OpenId.SimpleRegAttributes.DOB));
                 request
                         .setAttribute(
-                                IdentityConstants.OpenId.Attributes.GENDER,
+                                
IdentityConstants.OpenId.SimpleRegAttributes.GENDER,
                                 sregResp
-                                        
.getAttributeValue(IdentityConstants.OpenId.Attributes.GENDER));
+                                        
.getAttributeValue(IdentityConstants.OpenId.SimpleRegAttributes.GENDER));
                 request
                         .setAttribute(
-                                
IdentityConstants.OpenId.Attributes.POSTAL_CODE,
+                                
IdentityConstants.OpenId.SimpleRegAttributes.POSTAL_CODE,
                                 sregResp
-                                        
.getAttributeValue(IdentityConstants.OpenId.Attributes.POSTAL_CODE));
+                                        
.getAttributeValue(IdentityConstants.OpenId.SimpleRegAttributes.POSTAL_CODE));
                 request
                         .setAttribute(
-                                IdentityConstants.OpenId.Attributes.COUNTRY,
+                                
IdentityConstants.OpenId.SimpleRegAttributes.COUNTRY,
                                 sregResp
-                                        
.getAttributeValue(IdentityConstants.OpenId.Attributes.COUNTRY));
+                                        
.getAttributeValue(IdentityConstants.OpenId.SimpleRegAttributes.COUNTRY));
                 request
                         .setAttribute(
-                                IdentityConstants.OpenId.Attributes.LANGUAGE,
+                                
IdentityConstants.OpenId.SimpleRegAttributes.LANGUAGE,
                                 sregResp
-                                        
.getAttributeValue(IdentityConstants.OpenId.Attributes.LANGUAGE));
+                                        
.getAttributeValue(IdentityConstants.OpenId.SimpleRegAttributes.LANGUAGE));
                 request
                         .setAttribute(
-                                IdentityConstants.OpenId.Attributes.TIMEZONE,
+                                
IdentityConstants.OpenId.SimpleRegAttributes.TIMEZONE,
                                 sregResp
-                                        
.getAttributeValue(IdentityConstants.OpenId.Attributes.TIMEZONE));
+                                        
.getAttributeValue(IdentityConstants.OpenId.SimpleRegAttributes.TIMEZONE));
 
             }
 

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to