|
From: <pe...@us...> - 2003-12-16 23:16:43
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers
In directory sc8-pr-cvs1:/tmp/cvs-serv31489/src/java/org/neuclear/commons/crypto/signers
Modified Files:
ServletSignerFactory.java SimpleSigner.java
Log Message:
Work done on the SigningServlet. The two phase web model is now only an option.
Allowing much quicker signing, using the GuiDialogueAgent.
The screen has also been cleaned up and displays the xml to be signed.
The GuiDialogueAgent now optionally remembers passphrases and has a checkbox to support this.
The PassPhraseAgent's now have a UserCancelsException, which allows the agent to tell the application if the user specifically
cancels the signing process.
Index: ServletSignerFactory.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers/ServletSignerFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ServletSignerFactory.java 15 Dec 2003 23:32:40 -0000 1.3
--- ServletSignerFactory.java 16 Dec 2003 23:16:40 -0000 1.4
***************
*** 57,61 ****
}
! 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);
--- 57,61 ----
}
! private static final PassPhraseAgent createWrapperAgent(final String keeppassphrase, final PassPhraseAgent coreagent, final String serviceid) throws UserCancelsException {
if (!Utility.isEmpty(keeppassphrase)&&keeppassphrase.equals("1")&&coreagent instanceof InteractiveAgent)
return new AskAtStartupAgent((InteractiveAgent)coreagent,serviceid);
Index: SimpleSigner.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers/SimpleSigner.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SimpleSigner.java 10 Dec 2003 23:55:45 -0000 1.5
--- SimpleSigner.java 16 Dec 2003 23:16:40 -0000 1.6
***************
*** 2,5 ****
--- 2,13 ----
* $Id$
* $Log$
+ * Revision 1.6 2003/12/16 23:16:40 pelle
+ * Work done on the SigningServlet. The two phase web model is now only an option.
+ * Allowing much quicker signing, using the GuiDialogueAgent.
+ * The screen has also been cleaned up and displays the xml to be signed.
+ * The GuiDialogueAgent now optionally remembers passphrases and has a checkbox to support this.
+ * The PassPhraseAgent's now have a UserCancelsException, which allows the agent to tell the application if the user specifically
+ * cancels the signing process.
+ *
* Revision 1.5 2003/12/10 23:55:45 pelle
* Did some cleaning up in the builders
***************
*** 190,194 ****
*/
! public final void addKey(final String name, final PrivateKey key) throws GeneralSecurityException, IOException {
addKey(name, agent.getPassPhrase(name), key);
}
--- 198,202 ----
*/
! public final void addKey(final String name, final PrivateKey key) throws GeneralSecurityException, IOException,CryptoException {
addKey(name, agent.getPassPhrase(name), key);
}
|