|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.neuclear.ledger.servlets.ServletLedgerFactory
Used to create Signers from signers configuration parameters. It keeps a cache of Signers with similar parameters. Thus if you have several Servlets with the same keystore parameters they will use the same instance of Signer
The Configuration parameters are as follows:
| parameter name | parameter value |
|---|---|
| keystore | The location of the JCE KeyStore. Defaults to the file .keystore in the users home directory If you specify test the built in Test keystore will be used. |
| serviceid | The main service ID of the service. Ie. neu://superbux.com/ecurrency. This is only required (and used) if you set keeppassphrase (see below) |
| passphraseagent | The type of passphraseagent to use. Valid options are signers, gui(default) and console |
| keeppassphrase | This asks for the service passphrase once at startup and remembers it through the lifetime of the signers |
Signer signer=ServletSignerFactory.getInstance().createSigner(config);
org.neuclear.commons.crypto.passphraseagents.PassPhraseAgent,
org.neuclear.commons.crypto.signers.Signer| Method Summary | |
LedgerController |
createLedger(javax.servlet.ServletConfig config)
|
static ServletLedgerFactory |
getInstance()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public LedgerController createLedger(javax.servlet.ServletConfig config)
throws LowlevelLedgerException
LowlevelLedgerExceptionpublic static ServletLedgerFactory getInstance()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||