|
From: <pe...@us...> - 2003-12-15 14:38:26
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers
In directory sc8-pr-cvs1:/tmp/cvs-serv5302/src/java/org/neuclear/commons/crypto/signers
Modified Files:
ServletSignerFactory.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: ServletSignerFactory.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers/ServletSignerFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ServletSignerFactory.java 14 Dec 2003 20:52:54 -0000 1.1
--- ServletSignerFactory.java 15 Dec 2003 14:38:23 -0000 1.2
***************
*** 24,28 ****
* if you set <tt>keeppassphrase</tt> (see below)</td></tr>
* <tr><td>passphraseagent</td><td>The type of passphraseagent to use. Valid options are <tt>servlet</tt>,
! * <tt>gui</tt> and <tt>console</tt>(default)</td></tr>
* <tr><td>keeppassphrase</td><td>This asks for the service passphrase once at startup and remembers it through the lifetime of the servlet</td></tr>
* </table>
--- 24,28 ----
* if you set <tt>keeppassphrase</tt> (see below)</td></tr>
* <tr><td>passphraseagent</td><td>The type of passphraseagent to use. Valid options are <tt>servlet</tt>,
! * <tt>gui</tt>(default) and <tt>console</tt></td></tr>
* <tr><td>keeppassphrase</td><td>This asks for the service passphrase once at startup and remembers it through the lifetime of the servlet</td></tr>
* </table>
***************
*** 69,78 ****
private InteractiveAgent getAgent(final String agenttype) {
if (!Utility.isEmpty(agenttype)){
! if (agenttype.toLowerCase().equals("gui"))
! return new GuiDialogAgent();
if (agenttype.toLowerCase().equals("servlet"))
return new ServletPassPhraseAgent();
}
! return new CommandLineAgent(); //The default DialogAgent
}
--- 69,78 ----
private InteractiveAgent getAgent(final String agenttype) {
if (!Utility.isEmpty(agenttype)){
! if (agenttype.toLowerCase().equals("console"))
! return new CommandLineAgent();
if (agenttype.toLowerCase().equals("servlet"))
return new ServletPassPhraseAgent();
}
! return new GuiDialogAgent(); //The default DialogAgent
}
|