|
From: Pelle B. <pe...@us...> - 2004-03-30 00:00:05
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22709/src/java/org/neuclear/commons/crypto/signers Added Files: BrowsableSigner.java Log Message: InteractiveAgent now has a new method which allows signers to ask for a passphrase without specifying alias. The agents are passed a reference to the Signer, which they can use to browse aliases as well as create new key pairs. The intention is to encapsulate most of the key management functionality within the InteractiveAgent. --- NEW FILE: BrowsableSigner.java --- package org.neuclear.commons.crypto.signers; import java.security.KeyStoreException; import java.util.Iterator; /* NeuClear Distributed Transaction Clearing Platform (C) 2003 Pelle Braendgaard This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $Id: BrowsableSigner.java,v 1.1 2004/03/29 23:48:33 pelle Exp $ $Log: BrowsableSigner.java,v $ Revision 1.1 2004/03/29 23:48:33 pelle InteractiveAgent now has a new method which allows signers to ask for a passphrase without specifying alias. The agents are passed a reference to the Signer, which they can use to browse aliases as well as create new key pairs. The intention is to encapsulate most of the key management functionality within the InteractiveAgent. */ /** * Signer Stores with interactive user interfaces can implement this to * provide an iterator of the keys held within. */ public interface BrowsableSigner { Iterator iterator() throws KeyStoreException; } |