You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(119) |
Oct
(111) |
Nov
(238) |
Dec
(395) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(239) |
Feb
(59) |
Mar
(354) |
Apr
(489) |
May
(23) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(5) |
Jun
(2) |
Jul
|
Aug
|
Sep
(3) |
Oct
(14) |
Nov
(17) |
Dec
(9) |
| 2007 |
Jan
(4) |
Feb
(3) |
Mar
|
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
(1) |
Apr
(7) |
May
(3) |
Jun
(6) |
Jul
(4) |
Aug
(3) |
Sep
(15) |
Oct
(13) |
Nov
(35) |
Dec
(40) |
| 2009 |
Jan
(19) |
Feb
(21) |
Mar
(16) |
Apr
(18) |
May
(36) |
Jun
(20) |
Jul
(32) |
Aug
(11) |
Sep
(3) |
Oct
(2) |
Nov
(2) |
Dec
(13) |
| 2010 |
Jan
(5) |
Feb
(5) |
Mar
(7) |
Apr
(1) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
(1) |
Sep
(1) |
Oct
(4) |
Nov
|
Dec
(3) |
| 2012 |
Jan
(3) |
Feb
(3) |
Mar
(1) |
Apr
(4) |
May
(8) |
Jun
(4) |
Jul
(9) |
Aug
(2) |
Sep
(8) |
Oct
(3) |
Nov
(8) |
Dec
(4) |
| 2013 |
Jan
(2) |
Feb
(1) |
Mar
(5) |
Apr
(6) |
May
(10) |
Jun
(5) |
Jul
(6) |
Aug
(7) |
Sep
(5) |
Oct
(2) |
Nov
(4) |
Dec
(4) |
| 2014 |
Jan
(13) |
Feb
(4) |
Mar
(7) |
Apr
(9) |
May
(20) |
Jun
(13) |
Jul
(10) |
Aug
(3) |
Sep
(5) |
Oct
(2) |
Nov
(2) |
Dec
(2) |
| 2015 |
Jan
(3) |
Feb
(3) |
Mar
(5) |
Apr
(4) |
May
(3) |
Jun
(2) |
Jul
(4) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(3) |
| 2016 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
(1) |
Aug
(4) |
Sep
(3) |
Oct
(3) |
Nov
(4) |
Dec
(2) |
| 2017 |
Jan
|
Feb
(2) |
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <pe...@us...> - 2003-12-15 23:33:07
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/auth
In directory sc8-pr-cvs1:/tmp/cvs-serv26213/src/java/org/neuclear/auth
Modified Files:
AuthenticationServlet.java
Log Message:
added ServletTools.getInitParam() which first tries the ServletConfig, then the context config.
All the web.xml's have been updated to support this. Also various further generalizations have been done throughout
for getServiceid(), getTitle(), getSigner()
Index: AuthenticationServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/auth/AuthenticationServlet.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** AuthenticationServlet.java 14 Dec 2003 20:53:04 -0000 1.9
--- AuthenticationServlet.java 15 Dec 2003 23:33:04 -0000 1.10
***************
*** 45,48 ****
--- 45,53 ----
$Id$
$Log$
+ Revision 1.10 2003/12/15 23:33:04 pelle
+ added ServletTools.getInitParam() which first tries the ServletConfig, then the context config.
+ All the web.xml's have been updated to support this. Also various further generalizations have been done throughout
+ for getServiceid(), getTitle(), getSigner()
+
Revision 1.9 2003/12/14 20:53:04 pelle
Added ServletPassPhraseAgent which uses ThreadLocal to transfer the passphrase to the signer.
***************
*** 97,102 ****
public final void init(final ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
! serviceid = servletConfig.getInitParameter("serviceid");
! title = servletConfig.getInitParameter("title");
try {
--- 102,107 ----
public final void init(final ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
! serviceid = ServletTools.getInitParam("serviceid",servletConfig);
! title = ServletTools.getInitParam("title",servletConfig);
try {
|
|
From: <pe...@us...> - 2003-12-15 23:32:43
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/servlets
In directory sc8-pr-cvs1:/tmp/cvs-serv26173/src/java/org/neuclear/commons/servlets
Modified Files:
ServletTools.java
Log Message:
added ServletTools.getInitParam() which first tries the ServletConfig, then the context config.
All the web.xml's have been updated to support this. Also various further generalizations have been done throughout
for getServiceid(), getTitle(), getSigner()
Index: ServletTools.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/servlets/ServletTools.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ServletTools.java 12 Dec 2003 19:27:38 -0000 1.3
--- ServletTools.java 15 Dec 2003 23:32:40 -0000 1.4
***************
*** 1,4 ****
--- 1,9 ----
/* $Id$
* $Log$
+ * Revision 1.4 2003/12/15 23:32:40 pelle
+ * added ServletTools.getInitParam() which first tries the ServletConfig, then the context config.
+ * All the web.xml's have been updated to support this. Also various further generalizations have been done throughout
+ * for getServiceid(), getTitle(), getSigner()
+ *
* Revision 1.3 2003/12/12 19:27:38 pelle
* All the Cactus tests now for signing servlet.
***************
*** 43,47 ****
--- 48,55 ----
package org.neuclear.commons.servlets;
+ import org.neuclear.commons.Utility;
+
import javax.servlet.http.HttpServletRequest;
+ import javax.servlet.ServletConfig;
import java.io.PrintWriter;
***************
*** 67,73 ****
out.println("</style></head><body bgcolor=\"#FFFFFF\"><div id=\"banner\"><table bgcolor=\"#0000ff\" width=\"100%\"><tr><td><h3 style=\"color: white\">");
out.println(title);
! out.println("</h3></td><td align=\"right\"><img src=\"images/logo.gif\"></td></tr></table></div>");
}
}
--- 75,85 ----
out.println("</style></head><body bgcolor=\"#FFFFFF\"><div id=\"banner\"><table bgcolor=\"#0000ff\" width=\"100%\"><tr><td><h3 style=\"color: white\">");
out.println(title);
! out.println("</h3></td><td align=\"right\"></td></tr></table></div>");
+ }
+
+ public static String getInitParam(String name, ServletConfig config){
+ return Utility.denullString(config.getInitParameter(name),config.getServletContext().getInitParameter(name));
}
}
|
|
From: <pe...@us...> - 2003-12-15 23:32:43
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers
In directory sc8-pr-cvs1:/tmp/cvs-serv26173/src/java/org/neuclear/commons/crypto/signers
Modified Files:
ServletSignerFactory.java
Log Message:
added ServletTools.getInitParam() which first tries the ServletConfig, then the context config.
All the web.xml's have been updated to support this. Also various further generalizations have been done throughout
for getServiceid(), getTitle(), getSigner()
Index: ServletSignerFactory.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers/ServletSignerFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ServletSignerFactory.java 15 Dec 2003 14:38:23 -0000 1.2
--- ServletSignerFactory.java 15 Dec 2003 23:32:40 -0000 1.3
***************
*** 3,6 ****
--- 3,7 ----
import org.neuclear.commons.Utility;
import org.neuclear.commons.NeuClearException;
+ import org.neuclear.commons.servlets.ServletTools;
import org.neuclear.commons.crypto.CryptoTools;
import org.neuclear.commons.crypto.passphraseagents.*;
***************
*** 39,54 ****
map=Collections.synchronizedMap(new HashMap());
}
-
public synchronized Signer createSigner(ServletConfig config) throws FileNotFoundException, GeneralSecurityException, NeuClearException {
! final String keystore=config.getInitParameter("keystore");
! final String keeppassphrase=config.getInitParameter("keeppassphrase");
! final String agenttype=config.getInitParameter("passphraseagent");
! final String serviceid = config.getInitParameter("serviceid");
final String hash = getConfigHash(keystore, keeppassphrase, agenttype,serviceid);
if (map.containsKey(hash))
return (Signer)map.get(hash);
! final InteractiveAgent coreagent=getAgent(agenttype);
! final PassPhraseAgent agent=(!Utility.isEmpty(keeppassphrase)&&keeppassphrase.equals("1"))?(PassPhraseAgent)new AskAtStartupAgent(coreagent,serviceid):coreagent;
// If keystore is "test" setup the TestCaseSigner otherwise use the JCESigner
final Signer signer=createSigner(keystore, agent);
--- 40,54 ----
map=Collections.synchronizedMap(new HashMap());
}
public synchronized Signer createSigner(ServletConfig config) throws FileNotFoundException, GeneralSecurityException, NeuClearException {
! final String keystore=ServletTools.getInitParam("keystore",config);
! final String keeppassphrase=ServletTools.getInitParam("keeppassphrase",config);
! final String agenttype=ServletTools.getInitParam("passphraseagent",config);
! final String serviceid = ServletTools.getInitParam("serviceid",config);
final String hash = getConfigHash(keystore, keeppassphrase, agenttype,serviceid);
if (map.containsKey(hash))
return (Signer)map.get(hash);
! final PassPhraseAgent coreagent=getAgent(agenttype);
! final PassPhraseAgent agent=createWrapperAgent(keeppassphrase, coreagent, serviceid);
// If keystore is "test" setup the TestCaseSigner otherwise use the JCESigner
final Signer signer=createSigner(keystore, agent);
***************
*** 57,64 ****
}
! private JCESigner createSigner(final String keystore, final PassPhraseAgent agent) throws GeneralSecurityException, NeuClearException, FileNotFoundException {
if (!Utility.isEmpty(keystore)){
if (keystore.toLowerCase().equals("test"))
return new TestCaseSigner(agent);
if (!keystore.toLowerCase().equals("default"))
return new JCESigner(keystore,"jks", "SUN",agent);
--- 57,71 ----
}
! private static final PassPhraseAgent createWrapperAgent(final String keeppassphrase, final PassPhraseAgent coreagent, final String serviceid) {
! if (!Utility.isEmpty(keeppassphrase)&&keeppassphrase.equals("1")&&coreagent instanceof InteractiveAgent)
! return new AskAtStartupAgent((InteractiveAgent)coreagent,serviceid);
! return coreagent;
! }
!
! private static final JCESigner createSigner(final String keystore, final PassPhraseAgent agent) throws GeneralSecurityException, NeuClearException, FileNotFoundException {
if (!Utility.isEmpty(keystore)){
if (keystore.toLowerCase().equals("test"))
return new TestCaseSigner(agent);
+
if (!keystore.toLowerCase().equals("default"))
return new JCESigner(keystore,"jks", "SUN",agent);
***************
*** 67,71 ****
}
! private InteractiveAgent getAgent(final String agenttype) {
if (!Utility.isEmpty(agenttype)){
if (agenttype.toLowerCase().equals("console"))
--- 74,78 ----
}
! private static final PassPhraseAgent getAgent(final String agenttype) {
if (!Utility.isEmpty(agenttype)){
if (agenttype.toLowerCase().equals("console"))
***************
*** 73,76 ****
--- 80,85 ----
if (agenttype.toLowerCase().equals("servlet"))
return new ServletPassPhraseAgent();
+ if (agenttype.toLowerCase().equals("test"))
+ return new AlwaysTheSamePassphraseAgent("neuclear");
}
return new GuiDialogAgent(); //The default DialogAgent
|
|
From: <pe...@us...> - 2003-12-15 23:32:21
|
Update of /cvsroot/neuclear/neuclear-signer/src/java/org/neuclear/signers/standalone In directory sc8-pr-cvs1:/tmp/cvs-serv26147/src/java/org/neuclear/signers/standalone Modified Files: StandaloneSigner.java Log Message: added ServletTools.getInitParam() which first tries the ServletConfig, then the context config. All the web.xml's have been updated to support this. Also various further generalizations have been done throughout for getServiceid(), getTitle(), getSigner() Index: StandaloneSigner.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-signer/src/java/org/neuclear/signers/standalone/StandaloneSigner.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StandaloneSigner.java 15 Dec 2003 14:38:18 -0000 1.1 --- StandaloneSigner.java 15 Dec 2003 23:32:18 -0000 1.2 *************** *** 12,15 **** --- 12,17 ---- + + /** * Starts a Jetty servlet Engine at port 11870, only listening on localhost. |
|
From: <pe...@us...> - 2003-12-15 23:31:59
|
Update of /cvsroot/neuclear/neuclear-pay/src/webapp/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv26037/src/webapp/WEB-INF Modified Files: web.xml Log Message: added ServletTools.getInitParam() which first tries the ServletConfig, then the context config. All the web.xml's have been updated to support this. Also various further generalizations have been done throughout for getServiceid(), getTitle(), getSigner() Index: web.xml =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/webapp/WEB-INF/web.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** web.xml 28 Nov 2003 00:11:51 -0000 1.3 --- web.xml 15 Dec 2003 23:31:54 -0000 1.4 *************** *** 1,5 **** <!DOCTYPE web-app ! PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" ! "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"> <web-app> <display-name>NeuClear Pay WebApp</display-name> --- 1,6 ---- + <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app ! PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" ! "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>NeuClear Pay WebApp</display-name> *************** *** 7,17 **** AssetController App </description> <filter> <filter-name>authfilter</filter-name> <filter-class>org.neuclear.auth.AuthenticationFilter</filter-class> - <init-param> - <param-name>serviceid</param-name> - <param-value>neu://test/bux</param-value> - </init-param> </filter> <filter-mapping> --- 8,31 ---- AssetController App </description> + <context-param> + <param-name>serviceid</param-name> + <param-value>neu://test/bux</param-value> + <description>NeuClear id of Service</description> + </context-param> + <context-param> + <param-name>title</param-name> + <param-value>NeuClear Sample E-Currency Application</param-value> + </context-param> + <context-param> + <param-name>keystore</param-name> + <param-value>test</param-value> + </context-param> + <context-param> + <param-name>passphraseagent</param-name> + <param-value>test</param-value> + </context-param> <filter> <filter-name>authfilter</filter-name> <filter-class>org.neuclear.auth.AuthenticationFilter</filter-class> </filter> <filter-mapping> *************** *** 23,34 **** <servlet-class>org.neuclear.asset.receiver.servlet.AssetControllerServlet</servlet-class> <init-param> - <param-name>title</param-name> - <param-value>NeuClear Example Application</param-value> - </init-param> - <init-param> - <param-name>serviceid</param-name> - <param-value>neu://test/bux</param-value> - </init-param> - <init-param> <param-name>datasource</param-name> <param-value>jdbc/AssetDS</param-value> --- 37,40 ---- *************** *** 36,62 **** <load-on-startup>1</load-on-startup> </servlet> ! <servlet> ! <servlet-name>authenticator</servlet-name> ! <servlet-class>org.neuclear.auth.AuthenticationServlet</servlet-class> ! <init-param> ! <param-name>title</param-name> ! <param-value>NeuClear Example Application</param-value> ! </init-param> ! <init-param> ! <param-name>serviceid</param-name> ! <param-value>neu://test/bux</param-value> ! </init-param> ! <load-on-startup>1</load-on-startup> ! </servlet> <servlet-mapping> <servlet-name>assetcontroller</servlet-name> ! <url-pattern>/Asset</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>authenticator</servlet-name> ! <url-pattern>/Authorize</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> ! </web-app> --- 42,60 ---- <load-on-startup>1</load-on-startup> </servlet> ! <servlet> ! <servlet-name>authenticator</servlet-name> ! <servlet-class>org.neuclear.auth.AuthenticationServlet</servlet-class> ! <load-on-startup>1</load-on-startup> ! </servlet> <servlet-mapping> <servlet-name>assetcontroller</servlet-name> ! <url-pattern>Asset</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>authenticator</servlet-name> ! <url-pattern>Authorize</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> ! </web-app> \ No newline at end of file |
|
From: <pe...@us...> - 2003-12-15 23:31:58
|
Update of /cvsroot/neuclear/neuclear-pay/src/webapp
In directory sc8-pr-cvs1:/tmp/cvs-serv26037/src/webapp
Modified Files:
index.jsp
Log Message:
added ServletTools.getInitParam() which first tries the ServletConfig, then the context config.
All the web.xml's have been updated to support this. Also various further generalizations have been done throughout
for getServiceid(), getTitle(), getSigner()
Index: index.jsp
===================================================================
RCS file: /cvsroot/neuclear/neuclear-pay/src/webapp/index.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** index.jsp 18 Nov 2003 23:34:30 -0000 1.1
--- index.jsp 15 Dec 2003 23:31:54 -0000 1.2
***************
*** 22,26 ****
if(!loggedin){
%>
! <form action="/Authorize" method="POST">
<table bgcolor="#FFFFE0"><tr><td valign="top">
<input name="identity" value="<%=(userns!=null)?userns.getName():""%>" type="text" size="30">
--- 22,26 ----
if(!loggedin){
%>
! <form action="Authorize" method="POST">
<table bgcolor="#FFFFE0"><tr><td valign="top">
<input name="identity" value="<%=(userns!=null)?userns.getName():""%>" type="text" size="30">
|
|
From: <pe...@us...> - 2003-12-15 23:31:57
|
Update of /cvsroot/neuclear/neuclear-pay
In directory sc8-pr-cvs1:/tmp/cvs-serv26037
Modified Files:
project.xml
Log Message:
added ServletTools.getInitParam() which first tries the ServletConfig, then the context config.
All the web.xml's have been updated to support this. Also various further generalizations have been done throughout
for getServiceid(), getTitle(), getSigner()
Index: project.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-pay/project.xml,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** project.xml 12 Dec 2003 21:12:54 -0000 1.17
--- project.xml 15 Dec 2003 23:31:54 -0000 1.18
***************
*** 78,82 ****
<id>neuclear-commons</id>
<name>neuclear-commons</name>
! <version>0.5</version>
<properties>
<war.bundle>true</war.bundle>
--- 78,82 ----
<id>neuclear-commons</id>
<name>neuclear-commons</name>
! <version>0.5.1-SNAPSHOT</version>
<properties>
<war.bundle>true</war.bundle>
***************
*** 93,97 ****
<id>neuclear-id</id>
<name>neuclear-id</name>
! <version>0.8</version>
<properties>
<war.bundle>true</war.bundle>
--- 93,97 ----
<id>neuclear-id</id>
<name>neuclear-id</name>
! <version>0.8.1-SNAPSHOT</version>
<properties>
<war.bundle>true</war.bundle>
|
|
From: <pe...@us...> - 2003-12-15 23:31:57
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/receiver/servlet
In directory sc8-pr-cvs1:/tmp/cvs-serv26037/src/java/org/neuclear/asset/receiver/servlet
Modified Files:
AssetControllerServlet.java
Log Message:
added ServletTools.getInitParam() which first tries the ServletConfig, then the context config.
All the web.xml's have been updated to support this. Also various further generalizations have been done throughout
for getServiceid(), getTitle(), getSigner()
Index: AssetControllerServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/receiver/servlet/AssetControllerServlet.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AssetControllerServlet.java 10 Dec 2003 23:52:39 -0000 1.5
--- AssetControllerServlet.java 15 Dec 2003 23:31:54 -0000 1.6
***************
*** 35,38 ****
--- 35,43 ----
$Id$
$Log$
+ Revision 1.6 2003/12/15 23:31:54 pelle
+ added ServletTools.getInitParam() which first tries the ServletConfig, then the context config.
+ All the web.xml's have been updated to support this. Also various further generalizations have been done throughout
+ for getServiceid(), getTitle(), getSigner()
+
Revision 1.5 2003/12/10 23:52:39 pelle
Did some cleaning up in the builders
***************
*** 76,80 ****
public final void init(final ServletConfig config) throws ServletException {
super.init(config);
- serviceid = config.getInitParameter("serviceid");
datasource = config.getInitParameter("datasource");
AssetGlobals.registerReaders();
--- 81,84 ----
***************
*** 82,96 ****
INSTANCE = this;
try {
! asset = (Asset) NSResolver.resolveIdentity(serviceid);
! signer = new TestCaseSigner();
final AssetControllerReceiver receiver = new AssetControllerReceiver(
new CurrencyController(
new SQLLedger(
new JNDIConnectionSource(datasource),
! serviceid
),
! serviceid
),
! signer
);
--- 86,99 ----
INSTANCE = this;
try {
! asset = (Asset) NSResolver.resolveIdentity(getServiceid());
final AssetControllerReceiver receiver = new AssetControllerReceiver(
new CurrencyController(
new SQLLedger(
new JNDIConnectionSource(datasource),
! getServiceid()
),
! getServiceid()
),
! getSigner()
);
***************
*** 98,119 ****
} catch (Exception e) {
! e.printStackTrace();
}
}
public final Asset getAsset() {
- final byte test[] = "one two three".getBytes();
- test[0] = 0;
-
return asset;
}
- public TestCaseSigner getSigner() {
- return signer;
- }
-
- public final String getServiceid() {
- return serviceid;
- }
public final String getDatasource() {
--- 101,113 ----
} catch (Exception e) {
! ctx.log("AssetControllerServer: "+e.getLocalizedMessage());
! throw new ServletException(e);
}
}
public final Asset getAsset() {
return asset;
}
public final String getDatasource() {
***************
*** 126,132 ****
private Asset asset;
- private String serviceid;
private String datasource;
private static AssetControllerServlet INSTANCE;
- private TestCaseSigner signer;
}
--- 120,124 ----
|
|
From: <pe...@us...> - 2003-12-15 23:31:34
|
Update of /cvsroot/neuclear/neuclear-id-sample/src/webapp/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv25971/src/webapp/WEB-INF Modified Files: web.xml Log Message: added ServletTools.getInitParam() which first tries the ServletConfig, then the context config. All the web.xml's have been updated to support this. Also various further generalizations have been done throughout for getServiceid(), getTitle(), getSigner() Index: web.xml =================================================================== RCS file: /cvsroot/neuclear/neuclear-id-sample/src/webapp/WEB-INF/web.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** web.xml 15 Dec 2003 14:38:12 -0000 1.2 --- web.xml 15 Dec 2003 23:31:31 -0000 1.3 *************** *** 1,19 **** <!DOCTYPE web-app ! PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" ! "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"> ! <web-app> - <display-name>NeuClear WebApp</display-name> <description> Sample NeuClear Web app </description> <filter> <filter-name>authfilter</filter-name> <filter-class>org.neuclear.auth.AuthenticationFilter</filter-class> - <init-param> - <param-name>serviceid</param-name> - <param-value>neu://test</param-value> - </init-param> </filter> <filter-mapping> --- 1,31 ---- + <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app ! PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" ! "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>NeuClear WebApp</display-name> <description> Sample NeuClear Web app </description> + <context-param> + <param-name>serviceid</param-name> + <param-value>neu://test</param-value> + <description>NeuClear id of Service</description> + </context-param> + <context-param> + <param-name>title</param-name> + <param-value>NeuClear Sample Web Application</param-value> + </context-param> + <context-param> + <param-name>keystore</param-name> + <param-value>test</param-value> + </context-param> + <context-param> + <param-name>passphraseagent</param-name> + <param-value>test</param-value> + </context-param> <filter> <filter-name>authfilter</filter-name> <filter-class>org.neuclear.auth.AuthenticationFilter</filter-class> </filter> <filter-mapping> *************** *** 24,47 **** <servlet-name>authenticator</servlet-name> <servlet-class>org.neuclear.auth.AuthenticationServlet</servlet-class> - <init-param> - <param-name>title</param-name> - <param-value>NeuClear Sample Application</param-value> - </init-param> - <init-param> - <param-name>serviceid</param-name> - <param-value>neu://test</param-value> - </init-param> - <init-param> - <param-name>keystore</param-name> - <param-value>test</param-value> - </init-param> - <init-param> - <param-name>keeppassphrase</param-name> - <param-value>1</param-value> - </init-param> - <init-param> - <param-name>passphraseagent</param-name> - <param-value>gui</param-value> - </init-param> <load-on-startup>1</load-on-startup> </servlet> --- 36,39 ---- *************** *** 53,55 **** <welcome-file>index.jsp</welcome-file> </welcome-file-list> ! </web-app> --- 45,47 ---- <welcome-file>index.jsp</welcome-file> </welcome-file-list> ! </web-app> \ No newline at end of file |
|
From: <pe...@us...> - 2003-12-15 19:24:59
|
Update of /cvsroot/neuclear/neuclear-ledger/src/sql In directory sc8-pr-cvs1:/tmp/cvs-serv5075/src/sql Log Message: Directory /cvsroot/neuclear/neuclear-ledger/src/sql added to the repository |
|
From: <pe...@us...> - 2003-12-15 19:24:26
|
Update of /cvsroot/neuclear/neuclear-ledger/src/webapp/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv4953/src/webapp/WEB-INF Log Message: Directory /cvsroot/neuclear/neuclear-ledger/src/webapp/WEB-INF added to the repository |
|
From: <pe...@us...> - 2003-12-15 19:22:01
|
Update of /cvsroot/neuclear/neuclear-ledger/src/webapp In directory sc8-pr-cvs1:/tmp/cvs-serv4551/src/webapp Log Message: Directory /cvsroot/neuclear/neuclear-ledger/src/webapp added to the repository |
|
From: <pe...@us...> - 2003-12-15 14:45:00
|
Update of /cvsroot/neuclear/neuclear-id-sample
In directory sc8-pr-cvs1:/tmp/cvs-serv6330
Modified Files:
project.xml
Log Message:
modified the url path for neuclear-id-sample
Index: project.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id-sample/project.xml,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** project.xml 14 Dec 2003 21:33:11 -0000 1.1.1.1
--- project.xml 15 Dec 2003 14:44:57 -0000 1.2
***************
*** 17,21 ****
</description>
! <url>http://neuclear.org/id/</url>
<repository>
<connection>
--- 17,21 ----
</description>
! <url>http://neuclear.org/id/sample</url>
<repository>
<connection>
***************
*** 28,32 ****
<siteAddress>neuclear.org/id/</siteAddress>
! <siteDirectory>/home/sites/neuclear.org/public_html/id/</siteDirectory>
<issueTrackingUrl>http://jira.neuclear.org:9090/</issueTrackingUrl>
<mailingLists>
--- 28,32 ----
<siteAddress>neuclear.org/id/</siteAddress>
! <siteDirectory>/home/sites/neuclear.org/public_html/id/sample/</siteDirectory>
<issueTrackingUrl>http://jira.neuclear.org:9090/</issueTrackingUrl>
<mailingLists>
|
|
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) {
}
|
|
From: <pe...@us...> - 2003-12-15 14:38:26
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/servlets
In directory sc8-pr-cvs1:/tmp/cvs-serv5302/src/java/org/neuclear/commons/servlets
Added Files:
EnsureRequestHostFilter.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.
--- NEW FILE: EnsureRequestHostFilter.java ---
package org.neuclear.commons.servlets;
import org.neuclear.commons.Utility;
import javax.servlet.*;
import java.io.IOException;
/**
* Filter that only allows requests from the given ip address. Defaults to 127.0.0.1 (localhost).
* This can be set in the init parameter <tt>allowip</tt>
*/
public class EnsureRequestHostFilter implements Filter{
public void init(FilterConfig config) throws ServletException {
allowed=Utility.denullString(config.getInitParameter("allowip"),"127.0.0.1");
}
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
if (request.getRemoteAddr().equals(allowed))
chain.doFilter(request, response);
}
public void destroy() {
}
private String allowed;
}
|
|
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
}
|
|
From: <pe...@us...> - 2003-12-15 14:38:21
|
Update of /cvsroot/neuclear/neuclear-signer/src/webapp/WEB-INF
In directory sc8-pr-cvs1:/tmp/cvs-serv5275/src/webapp/WEB-INF
Modified Files:
web.xml
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: web.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-signer/src/webapp/WEB-INF/web.xml,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** web.xml 15 Dec 2003 13:37:24 -0000 1.1.1.1
--- web.xml 15 Dec 2003 14:38:18 -0000 1.2
***************
*** 10,22 ****
</description>
<filter>
! <filter-name>authfilter</filter-name>
! <filter-class>org.neuclear.auth.AuthenticationFilter</filter-class>
<init-param>
! <param-name>serviceid</param-name>
! <param-value>neu://test</param-value>
</init-param>
</filter>
<filter-mapping>
! <filter-name>authfilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
--- 10,22 ----
</description>
<filter>
! <filter-name>ensurelocalhost</filter-name>
! <filter-class>org.neuclear.commons.servlets.EnsureRequestHostFilter</filter-class>
<init-param>
! <param-name>allowip</param-name>
! <param-value>127.0.0.1</param-value>
</init-param>
</filter>
<filter-mapping>
! <filter-name>ensurelocalhost</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
***************
*** 38,86 ****
<load-on-startup>1</load-on-startup>
</servlet>
- <servlet>
- <servlet-name>demosigner</servlet-name>
- <servlet-class>org.neuclear.signers.servlet.DemoSigningServlet</servlet-class>
- <init-param>
- <param-name>title</param-name>
- <param-value>NeuClear Demo Signer</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet>
- <servlet-name>authenticator</servlet-name>
- <servlet-class>org.neuclear.auth.AuthenticationServlet</servlet-class>
- <init-param>
- <param-name>title</param-name>
- <param-value>NeuClear Example Application</param-value>
- </init-param>
- <init-param>
- <param-name>serviceid</param-name>
- <param-value>neu://test</param-value>
- </init-param>
- <init-param>
- <param-name>keystore</param-name>
- <param-value></param-value>
- </init-param>
- <init-param>
- <param-name>keeppassphrase</param-name>
- <param-value>1</param-value>
- </init-param>
- <init-param>
- <param-name>passphraseagent</param-name>
- <param-value>gui</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
<servlet-mapping>
<servlet-name>jcesigner</servlet-name>
<url-pattern>/Signer</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>demosigner</servlet-name>
- <url-pattern>/DemoSigner</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>authenticator</servlet-name>
- <url-pattern>/Authorize</url-pattern>
</servlet-mapping>
<welcome-file-list>
--- 38,44 ----
|
|
From: <pe...@us...> - 2003-12-15 14:38:21
|
Update of /cvsroot/neuclear/neuclear-signer In directory sc8-pr-cvs1:/tmp/cvs-serv5275 Modified Files: project.properties project.xml 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: project.properties =================================================================== RCS file: /cvsroot/neuclear/neuclear-signer/project.properties,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** project.properties 15 Dec 2003 13:37:23 -0000 1.1.1.1 --- project.properties 15 Dec 2003 14:38:18 -0000 1.2 *************** *** 13,14 **** --- 13,17 ---- maven.repo.central = neuclear.org maven.repo.central.directory = /home/sites/neuclear.org/public_html/maven + + maven.javaapp.mainclass = org.neuclear.signers.standalone.StandaloneSigner + maven.javaapp.jar.exclude= Index: project.xml =================================================================== RCS file: /cvsroot/neuclear/neuclear-signer/project.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** project.xml 15 Dec 2003 13:37:23 -0000 1.1.1.1 --- project.xml 15 Dec 2003 14:38:18 -0000 1.2 *************** *** 4,8 **** <name>NeuClear Identity Personal Signer</name> <id>neuclear-signer</id> ! <currentVersion>0.1-SNAPSHOT</currentVersion> <inceptionYear>2003</inceptionYear> <package>org.neuclear.signers.standalone</package> --- 4,8 ---- <name>NeuClear Identity Personal Signer</name> <id>neuclear-signer</id> ! <currentVersion>0.8.1-SNAPSHOT</currentVersion> <inceptionYear>2003</inceptionYear> <package>org.neuclear.signers.standalone</package> *************** *** 17,21 **** </description> ! <url>http://neuclear.org/id/</url> <repository> <connection> --- 17,21 ---- </description> ! <url>http://neuclear.org/signer/</url> <repository> <connection> *************** *** 85,89 **** </properties> </dependency> ! <dependency> <id>dom4j</id> --- 85,94 ---- </properties> </dependency> ! <dependency> ! <id>jetty</id> ! <name>jetty</name> ! <version>4.2.14</version> ! <jar>org.mortbay.jetty-4.2.14.jar</jar> ! </dependency> <dependency> <id>dom4j</id> |
|
From: <pe...@us...> - 2003-12-15 14:38:21
|
Update of /cvsroot/neuclear/neuclear-signer/src/java/org/neuclear/signers/standalone
In directory sc8-pr-cvs1:/tmp/cvs-serv5275/src/java/org/neuclear/signers/standalone
Added Files:
StandaloneSigner.java StandaloneSigningServlet.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.
--- NEW FILE: StandaloneSigner.java ---
package org.neuclear.signers.standalone;
import org.mortbay.http.HttpServer;
import org.mortbay.http.HttpContext;
import org.mortbay.jetty.servlet.ServletHttpContext;
import org.mortbay.jetty.servlet.ServletHandler;
import org.mortbay.jetty.Server;
import org.mortbay.util.InetAddrPort;
import org.mortbay.util.MultiException;
import java.io.IOException;
/**
* Starts a Jetty servlet Engine at port 11870, only listening on localhost.
* with a SigningServlet at http://127.0.0.1:11870/Signer
*/
public class StandaloneSigner {
public static void main(String args[]){
try {
Server server = new Server();
server.addListener(new InetAddrPort("127.0.0.1",11870));
HttpContext context = server.getContext("/");
ServletHandler handler= new ServletHandler();
handler.addServlet("/Signer","org.neuclear.signers.standalone.StandaloneSigningServlet");
context.addHandler(handler);
server.start();
} catch (IOException e) {
e.printStackTrace(); //To change body of catch statement use Options | File Templates.
} catch (MultiException e) {
e.printStackTrace(); //To change body of catch statement use Options | File Templates.
}
}
}
--- NEW FILE: StandaloneSigningServlet.java ---
package org.neuclear.signers.standalone;
import org.neuclear.signers.servlet.SigningServlet;
import org.neuclear.commons.crypto.signers.Signer;
import org.neuclear.commons.crypto.signers.DefaultSigner;
import org.neuclear.commons.crypto.passphraseagents.GuiDialogAgent;
import org.neuclear.commons.NeuClearException;
import org.neuclear.commons.servlets.ServletTools;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.security.GeneralSecurityException;
import java.io.IOException;
import java.io.PrintWriter;
/**
* Created by IntelliJ IDEA.
* User: pelleb
* Date: Dec 15, 2003
* Time: 9:20:32 AM
* To change this template use Options | File Templates.
*/
public class StandaloneSigningServlet extends SigningServlet {
protected Signer createSigner(ServletConfig config) throws GeneralSecurityException, NeuClearException, IOException {
return new DefaultSigner(new GuiDialogAgent());
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter writer=response.getWriter();
ServletTools.printHeader(writer, request,"NeuClear Signing Servlet");
}
}
|
|
From: <pe...@us...> - 2003-12-15 14:38:15
|
Update of /cvsroot/neuclear/neuclear-id-sample/src/webapp/WEB-INF
In directory sc8-pr-cvs1:/tmp/cvs-serv5260/src/webapp/WEB-INF
Modified Files:
web.xml
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: web.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id-sample/src/webapp/WEB-INF/web.xml,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** web.xml 14 Dec 2003 21:33:11 -0000 1.1.1.1
--- web.xml 15 Dec 2003 14:38:12 -0000 1.2
***************
*** 22,56 ****
</filter-mapping>
<servlet>
- <servlet-name>jcesigner</servlet-name>
- <servlet-class>org.neuclear.signers.servlet.SigningServlet</servlet-class>
- <init-param>
- <param-name>title</param-name>
- <param-value>NeuClear Local Signer</param-value>
- </init-param>
- <init-param>
- <param-name>keeppassphrase</param-name>
- <param-value>1</param-value>
- </init-param>
- <init-param>
- <param-name>passphraseagent</param-name>
- <param-value>gui</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet>
- <servlet-name>demosigner</servlet-name>
- <servlet-class>org.neuclear.signers.servlet.DemoSigningServlet</servlet-class>
- <init-param>
- <param-name>title</param-name>
- <param-value>NeuClear Demo Signer</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet>
<servlet-name>authenticator</servlet-name>
<servlet-class>org.neuclear.auth.AuthenticationServlet</servlet-class>
<init-param>
<param-name>title</param-name>
! <param-value>NeuClear Example Application</param-value>
</init-param>
<init-param>
--- 22,30 ----
</filter-mapping>
<servlet>
<servlet-name>authenticator</servlet-name>
<servlet-class>org.neuclear.auth.AuthenticationServlet</servlet-class>
<init-param>
<param-name>title</param-name>
! <param-value>NeuClear Sample Application</param-value>
</init-param>
<init-param>
***************
*** 60,64 ****
<init-param>
<param-name>keystore</param-name>
! <param-value></param-value>
</init-param>
<init-param>
--- 34,38 ----
<init-param>
<param-name>keystore</param-name>
! <param-value>test</param-value>
</init-param>
<init-param>
***************
*** 72,83 ****
<load-on-startup>1</load-on-startup>
</servlet>
- <servlet-mapping>
- <servlet-name>jcesigner</servlet-name>
- <url-pattern>/Signer</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>demosigner</servlet-name>
- <url-pattern>/DemoSigner</url-pattern>
- </servlet-mapping>
<servlet-mapping>
<servlet-name>authenticator</servlet-name>
--- 46,49 ----
|
|
From: <pe...@us...> - 2003-12-15 13:40:37
|
Update of /cvsroot/neuclear/neuclear-signer/src/java/org/neuclear/signers/standalone In directory sc8-pr-cvs1:/tmp/cvs-serv27262/src/java/org/neuclear/signers/standalone Log Message: Directory /cvsroot/neuclear/neuclear-signer/src/java/org/neuclear/signers/standalone added to the repository |
|
From: <pe...@us...> - 2003-12-15 13:40:35
|
Update of /cvsroot/neuclear/neuclear-signer/src/java/org/neuclear/signers In directory sc8-pr-cvs1:/tmp/cvs-serv27240/src/java/org/neuclear/signers Log Message: Directory /cvsroot/neuclear/neuclear-signer/src/java/org/neuclear/signers added to the repository |
|
From: <pe...@us...> - 2003-12-15 13:40:27
|
Update of /cvsroot/neuclear/neuclear-signer/src/java/org/neuclear In directory sc8-pr-cvs1:/tmp/cvs-serv27230/src/java/org/neuclear Log Message: Directory /cvsroot/neuclear/neuclear-signer/src/java/org/neuclear added to the repository |
|
From: <pe...@us...> - 2003-12-15 13:40:22
|
Update of /cvsroot/neuclear/neuclear-signer/src/java/org In directory sc8-pr-cvs1:/tmp/cvs-serv27207/src/java/org Log Message: Directory /cvsroot/neuclear/neuclear-signer/src/java/org added to the repository |
|
From: <pe...@us...> - 2003-12-15 13:39:36
|
Update of /cvsroot/neuclear/neuclear-signer/src/java In directory sc8-pr-cvs1:/tmp/cvs-serv27093/src/java Log Message: Directory /cvsroot/neuclear/neuclear-signer/src/java added to the repository |