geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r477188 - /geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/UnlockKeyHandler.java
Date Mon, 20 Nov 2006 14:18:09 GMT
Author: vamsic007
Date: Mon Nov 20 06:18:08 2006
New Revision: 477188

URL: http://svn.apache.org/viewvc?view=rev&rev=477188
Log:
GERONIMO-2586  KeystorePortlet: Unlock keystore for availability shows key aliases only when
keystore is unlocked for edit

Modified:
    geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/UnlockKeyHandler.java

Modified: geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/UnlockKeyHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/UnlockKeyHandler.java?view=diff&rev=477188&r1=477187&r2=477188
==============================================================================
--- geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/UnlockKeyHandler.java
(original)
+++ geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/UnlockKeyHandler.java
Mon Nov 20 06:18:08 2006
@@ -42,9 +42,14 @@
 
     public void renderView(RenderRequest request, RenderResponse response, MultiPageModel
model) throws PortletException, IOException {
         String keystore = request.getParameter("keystore");
+        String password = request.getParameter("password");
         request.setAttribute("keystore", keystore);
         KeystoreData data = ((KeystoreData) request.getPortletSession(true).getAttribute(KEYSTORE_DATA_PREFIX
+ keystore));
-        request.setAttribute("keys", data.getKeys());
+        try {
+            request.setAttribute("keys", data.getInstance().listPrivateKeys(password.toCharArray()));
+        } catch (KeystoreException e) {
+            throw new PortletException(e);
+        }
     }
 
     public String actionAfterView(ActionRequest request, ActionResponse response, MultiPageModel
model) throws PortletException, IOException {



Mime
View raw message