|
From: Pelle B. <pe...@us...> - 2004-04-13 00:04:01
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/passphraseagents In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21842/src/java/org/neuclear/commons/crypto/passphraseagents Modified Files: AlwaysTheSamePassphraseAgent.java Log Message: implemented the queue and improved the DefaultSigner Index: AlwaysTheSamePassphraseAgent.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/passphraseagents/AlwaysTheSamePassphraseAgent.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AlwaysTheSamePassphraseAgent.java 19 Dec 2003 18:02:53 -0000 1.3 --- AlwaysTheSamePassphraseAgent.java 12 Apr 2004 23:50:07 -0000 1.4 *************** *** 23,26 **** --- 23,29 ---- $Id$ $Log$ + Revision 1.4 2004/04/12 23:50:07 pelle + implemented the queue and improved the DefaultSigner + Revision 1.3 2003/12/19 18:02:53 pelle Revamped a lot of exception handling throughout the framework, it has been simplified in most places: *************** *** 67,70 **** --- 70,78 ---- } + public AlwaysTheSamePassphraseAgent(final char[] passphrase) { + this.passphrase = new String(passphrase); + System.out.println("AlwaysTheSamePassphraseAgent started.\nDO NOT USE FOR PRODUCTION SERVERS"); + } + public final char[] getPassPhrase(final String name) { return passphrase.toCharArray(); *************** *** 72,76 **** public char[] getPassPhrase(String name, boolean incorrect) throws UserCancellationException { ! if (incorrect) throw new LowLevelException("passphrase is incorrect for: "+name); return getPassPhrase(name); } --- 80,84 ---- public char[] getPassPhrase(String name, boolean incorrect) throws UserCancellationException { ! if (incorrect) throw new LowLevelException("passphrase is incorrect for: " + name); return getPassPhrase(name); } |