|
From: <pe...@us...> - 2003-12-15 14:38:33
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/servlet
In directory sc8-pr-cvs1:/tmp/cvs-serv5323/src/java/org/neuclear/signers/servlet
Modified Files:
DemoSigningServlet.java SigningServlet.java
Log Message:
Added EnsureHostRequestFilter to commons, to only allow requests from a particular IP
Added a method to optionally show the passphrase box in the SigningServlet. As the default SigningServlet
is intended to be used with a gui passphrase agent, we dont want to display it.
The DemoSigningServlet does display the dialogue.
Added the new neuclear-signer package, which is a standalone web signer using Jetty. The project runs
when built with "maven javaapp". More testing needs to be done as well as a startup wizard.
Index: DemoSigningServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/servlet/DemoSigningServlet.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** DemoSigningServlet.java 14 Dec 2003 20:53:04 -0000 1.14
--- DemoSigningServlet.java 15 Dec 2003 14:38:30 -0000 1.15
***************
*** 2,5 ****
--- 2,13 ----
* $Id$
* $Log$
+ * Revision 1.15 2003/12/15 14:38:30 pelle
+ * Added EnsureHostRequestFilter to commons, to only allow requests from a particular IP
+ * Added a method to optionally show the passphrase box in the SigningServlet. As the default SigningServlet
+ * is intended to be used with a gui passphrase agent, we dont want to display it.
+ * The DemoSigningServlet does display the dialogue.
+ * Added the new neuclear-signer package, which is a standalone web signer using Jetty. The project runs
+ * when built with "maven javaapp". More testing needs to be done as well as a startup wizard.
+ *
* Revision 1.14 2003/12/14 20:53:04 pelle
* Added ServletPassPhraseAgent which uses ThreadLocal to transfer the passphrase to the signer.
***************
*** 183,186 ****
--- 191,195 ----
import java.io.IOException;
import java.io.InputStream;
+ import java.io.PrintWriter;
import java.security.GeneralSecurityException;
***************
*** 200,203 ****
--- 209,215 ----
super.handleInputStream(is, request, response);
agent.clear();
+ }
+ protected void writePassphraseDialogue(final PrintWriter out) {
+ out.println("Passphrase: <input name=\"passphrase\" type=\"password\" size=\"40\">");
}
Index: SigningServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/servlet/SigningServlet.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** SigningServlet.java 14 Dec 2003 20:53:04 -0000 1.21
--- SigningServlet.java 15 Dec 2003 14:38:30 -0000 1.22
***************
*** 2,5 ****
--- 2,13 ----
* $Id$
* $Log$
+ * Revision 1.22 2003/12/15 14:38:30 pelle
+ * Added EnsureHostRequestFilter to commons, to only allow requests from a particular IP
+ * Added a method to optionally show the passphrase box in the SigningServlet. As the default SigningServlet
+ * is intended to be used with a gui passphrase agent, we dont want to display it.
+ * The DemoSigningServlet does display the dialogue.
+ * Added the new neuclear-signer package, which is a standalone web signer using Jetty. The project runs
+ * when built with "maven javaapp". More testing needs to be done as well as a startup wizard.
+ *
* Revision 1.21 2003/12/14 20:53:04 pelle
* Added ServletPassPhraseAgent which uses ThreadLocal to transfer the passphrase to the signer.
***************
*** 341,345 ****
out.print("\" type=\"hidden\">\n <input name=\"endpoint\" value=\"");
out.print(endpoint);
! out.println("\" type=\"hidden\"/>\nPassphrase: <input name=\"passphrase\" type=\"password\" size=\"40\">");
out.println(" <input type=\"submit\" name=\"sign\" value=\"Sign\"></form></td></tr></table>");
} else if (!Utility.isEmpty(endpoint)) {
--- 349,354 ----
out.print("\" type=\"hidden\">\n <input name=\"endpoint\" value=\"");
out.print(endpoint);
! out.println("\" type=\"hidden\"/>\n");
! writePassphraseDialogue(out);
out.println(" <input type=\"submit\" name=\"sign\" value=\"Sign\"></form></td></tr></table>");
} else if (!Utility.isEmpty(endpoint)) {
***************
*** 360,363 ****
--- 369,375 ----
+ }
+
+ protected void writePassphraseDialogue(final PrintWriter out) {
}
|