public class SignerFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SignerFactory.Type
The set of available signer objects.
|
| Constructor and Description |
|---|
SignerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Signer |
makeSigner(SignerFactory.Type type,
String alias,
KeyRing keyring,
Provider provider,
SignatureAlgorithm algorithm)
Creates a signer of the given type, initialising it with the given
algorithm information and the given key store to access the private key.
|
public static Signer makeSigner(SignerFactory.Type type, String alias, KeyRing keyring, Provider provider, SignatureAlgorithm algorithm) throws CryptoException
type - the type of signer to instantiate.alias - the alias of the certificate to be used for signing.keyring - the key store containing the private key.provider - the security provider backing up the key store.algorithm - the algorithm to be used for signing.CryptoExceptionCopyright © 2012-2014 Andrea Funtò. See here for terms and conditions.