org.neuclear.commons.crypto.signers
Interface BrowsableSigner

All Superinterfaces:
PublicKeySource, Signer
All Known Implementing Classes:
DefaultSigner, JCESigner, PersonalSigner, SQLSigner, TestCaseSigner

public interface BrowsableSigner
extends Signer, PublicKeySource

Signer Stores with interactive user interfaces can implement this to provide an iterator of the keys held within.


Field Summary
 
Fields inherited from interface org.neuclear.commons.crypto.signers.Signer
KEY_DSA, KEY_NONE, KEY_OTHER, KEY_RSA
 
Method Summary
 void createKeyPair(java.lang.String alias, char[] passphrase)
           
 java.util.Iterator iterator()
           
 byte[] sign(byte[] data, SetPublicKeyCallBack callback)
           
 byte[] sign(java.lang.String alias, char[] passphrase, byte[] data, SetPublicKeyCallBack callback)
           
 
Methods inherited from interface org.neuclear.commons.crypto.signers.Signer
canSignFor, generateKey, generateKey, getKeyType, save, sign
 
Methods inherited from interface org.neuclear.commons.crypto.signers.PublicKeySource
getPublicKey
 

Method Detail

iterator

java.util.Iterator iterator()
                            throws java.security.KeyStoreException
Throws:
java.security.KeyStoreException

sign

byte[] sign(byte[] data,
            SetPublicKeyCallBack callback)
            throws UserCancellationException
Throws:
UserCancellationException

sign

byte[] sign(java.lang.String alias,
            char[] passphrase,
            byte[] data,
            SetPublicKeyCallBack callback)
            throws InvalidPassphraseException
Throws:
InvalidPassphraseException

createKeyPair

void createKeyPair(java.lang.String alias,
                   char[] passphrase)
                   throws CryptoException
Throws:
CryptoException


Copyright © 2003-2004 Antilles Software Ventures SA. All Rights Reserved.