Author: prabath
Date: Thu Dec 13 03:31:41 2007
New Revision: 11081

Log:

Generalized to set the CardIssuer from a child card

Modified:
   
branches/solutions/identity/openid-poc/modules/user-ui/src/main/java/org/wso2/solutions/identity/user/ui/action/DownloadInfoCardAction.java

Modified: 
branches/solutions/identity/openid-poc/modules/user-ui/src/main/java/org/wso2/solutions/identity/user/ui/action/DownloadInfoCardAction.java
==============================================================================
--- 
branches/solutions/identity/openid-poc/modules/user-ui/src/main/java/org/wso2/solutions/identity/user/ui/action/DownloadInfoCardAction.java
 (original)
+++ 
branches/solutions/identity/openid-poc/modules/user-ui/src/main/java/org/wso2/solutions/identity/user/ui/action/DownloadInfoCardAction.java
 Thu Dec 13 03:31:41 2007
@@ -26,6 +26,7 @@
 
 import org.apache.struts2.StrutsStatics;
 import org.w3c.dom.Element;
+import org.wso2.solutions.identity.IdentityProviderException;
 import org.wso2.solutions.identity.cards.CardIssuer;
 import org.wso2.solutions.identity.user.ui.UIConstants;
 
@@ -46,7 +47,7 @@
         String userName = (String) session.get(UIConstants.USER);
         String sessionPpid = (String) session.get(UIConstants.PPID);
 
-        CardIssuer cardIssuer = new CardIssuer();
+        CardIssuer cardIssuer = getCardIssuer();
         HttpServletResponse response = (HttpServletResponse) context
                 .get(StrutsStatics.HTTP_RESPONSE);
         response.setContentType("application/x-informationCard");
@@ -81,5 +82,10 @@
     public void setSelfIssuedPpid(String selfIssuedPpids) {
         this.selfIssuedPpid = selfIssuedPpids;
     }
+    
+    protected CardIssuer getCardIssuer() throws IdentityProviderException{
+
+               return new CardIssuer();
+       }
 
 }

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

Reply via email to