@License public class SignerFactory extends Object
| Constructor and Description |
|---|
SignerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Signer |
makeSigner(EnvelopeFormat format,
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(EnvelopeFormat format, String alias, KeyRing keyring, Provider provider, SignatureAlgorithm algorithm) throws CryptoException, CertificateEncodingException, CertificateNotYetValidException, KeyStoreException, CertificateExpiredException
format - the type of signer to instantiate (the signature format).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.CryptoExceptionKeyStoreExceptionCertificateNotYetValidExceptionCertificateEncodingExceptionCertificateExpiredExceptionCopyright © 2012-2014 Andrea Funtò. See here for terms and conditions.