Author: prabath
Date: Sat Jan  5 22:00:05 2008
New Revision: 11862

Log:

Added OpenID related constants

Modified:
   
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/IdentityProviderConstants.java

Modified: 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/IdentityProviderConstants.java
==============================================================================
--- 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/IdentityProviderConstants.java
 (original)
+++ 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/IdentityProviderConstants.java
 Sat Jan  5 22:00:05 2008
@@ -15,6 +15,8 @@
  */
 package org.wso2.solutions.identity;
 
+import org.openid4java.message.ParameterList;
+
 /**
  * Constants of the identity provider
  */
@@ -24,7 +26,7 @@
     }
 
     public final static String WSO2_IS_NS = 
"http://www.wso2.org/solutions/identity";;
-    
+
     public final static String RESOURCES = 
"org.wso2.solutions.identity.resources";
 
     public final static String INITIAL_CLAIMS_FILE_PATH = 
"conf/initial-claims.xml";
@@ -65,7 +67,7 @@
     public final static String ATTR_NS_MOBILE_PHONE = IdentityConstants.NS
             + "/claims/mobile";
 
-    // Attibute namespaces
+    // Attribute namespaces
     public final static String DISPLAY_GIVEN_NAME = "Given Name";
 
     public final static String DISPLAY_SURNAME = "Surname";
@@ -90,7 +92,6 @@
 
     public final static String ISSUER_SELF = "Self";
 
-
     /**
      * Local names of the identity provider constants
      */
@@ -122,9 +123,10 @@
         public final static String KEBEROSV5_AUTHENTICATE = 
"KerberosV5Authenticate";
 
         public final static String X509V3_AUTNENTICATE = "X509V3Authenticate";
-        
-        public final static String IDENTITY = "Identity";
 
+        public final static String IDENTITY = "Identity";
+        
+        public final static String OPEN_ID_TOKEN = "OpenIDToken";
     }
 
     public static final String SERVICE_NAME_STS_UT = "sts-ut";
@@ -151,25 +153,25 @@
     public static final int AUTH_TYPE_X509_CERTIFICATE = 3;
 
     public static final int AUTH_TYPE_SELF_ISSUED = 4;
-    
+
     public static final String RP_USER_ROLE = "Rp_User_Role";
 
     public final static String PARAM_NAME_ALLOW_USER_REGISTRATION = 
"allowUserReg";
-    
+
     public final static String PARAM_NAME_ENABLE_EMAIL_VERIFICATION = 
"enableEmailVerification";
-    
+
     public final static String PARAM_NAME_EMAIL_PORT = "email_host_port";
-    
+
     public final static String PARAM_NAME_EMAIL_HOST = "email_host";
-    
+
     public final static String PARAM_NAME_EMAIL_FROM_ADDRESS = "email_from";
-    
+
     public final static String PARAM_NAME_EMAIL_USERNAME = "email_username";
-    
+
     public final static String PARAM_NAME_EMAIL_PASSWORD = "email_password";
 
     public final static String PARAM_NAME_EMAIL_VERIFICATION_EPR = "email_epr";
-    
+
     /**
      * Sample related constants of the identity provider
      */
@@ -194,7 +196,7 @@
 
         public final static String COLUMN_NAME_LASTNAME = "LASTNAME";
     }
-    
+
     public static class Default {
         public final static String CONNECTION_URL = 
"jdbc:derby:../database/WSO2IDENTITY_DEFAULT_USER_DB";
 
@@ -203,9 +205,26 @@
         public final static String CONNECTION_PASSWORD = "wso2is";
 
         public final static String DRIVER = 
"org.apache.derby.jdbc.EmbeddedDriver";
-        
+
         public final static String SQL_STATEMENTS_FILE_PATH = 
"user.default.sql.properties";
+
+    }
+
+    /**
+     * OpenID related constants of the identity provider
+     */
+    public static class OpenId {
+
+        public final static String COMPLETE = "complete";
+
+        public final static String ACTION = "_action";
+
+        public final static String PARAM_LIST = "parameterlist";
+        
+        public final static String PASSWORD = "password";
+        
+        public static final String SERVICE_NAME_STS_OPENID = "sts-openid-ut";
         
+        public static final String SERVICE_NAME_MEX_OPENID = "mex-openid-ut" ;
     }
-    
 }

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

Reply via email to