org.neuclear.commons.crypto.signers
Class TestCaseSigner
java.lang.Object
org.neuclear.commons.crypto.signers.JCESigner
org.neuclear.commons.crypto.signers.TestCaseSigner
- All Implemented Interfaces:
- BrowsableSigner, PublicKeySource, Signer
public final class TestCaseSigner
- extends JCESigner
A signer for use in test cases. This id exclusively for use in test applications
and we cant say strongly enough to NEVER use this in any production code.
To make life simple the only rule for the keystores are that they
are in standard jks format and all the passphrases including the
keystore passphrase are the same.
| Methods inherited from class org.neuclear.commons.crypto.signers.JCESigner |
canSignFor, createKeyPair, generateKey, generateKey, getKeyType, getPublicKey, iterator, save, save, save, sign, sign, sign, sign |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestCaseSigner
public TestCaseSigner()
throws InvalidPassphraseException
- Creates a TestCaseSigner with the keystore in:
src/testdata/keys/testkeys.jks
The password for all keys should be "neuclear"
- Throws:
InvalidPassphraseException
TestCaseSigner
public TestCaseSigner(PassPhraseAgent agent)
throws InvalidPassphraseException
- Throws:
InvalidPassphraseException
TestCaseSigner
public TestCaseSigner(java.lang.String name,
java.io.InputStream in,
java.lang.String passphrase)
throws InvalidPassphraseException
- Creates a TestCaseSigner in the given location. The keystore must
be a SUN JKS format file and the passphrase for the keystore and all
keys must be the same.
- Parameters:
in - InputStreampassphrase - The passphrase to use
- Throws:
InvalidPassphraseException
TestCaseSigner
public TestCaseSigner(java.lang.String name,
java.io.InputStream in,
PassPhraseAgent agent)
throws InvalidPassphraseException
- Throws:
InvalidPassphraseException
Copyright © 2003-2004 Antilles Software Ventures SA. All Rights Reserved.