public class SmartCardProviderFactory extends ProviderFactory<SmartCardTraits>
SmartCard database entry) has been retrieved.| Constructor and Description |
|---|
SmartCardProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
Provider |
acquire(SmartCardTraits traits)
Installs a new PKCS#11 security provider supporting the smart card model
and make specified in the initialisation traits, which must provide a
reference to the smart card reader in which the card is present and to
the database entry corresponding to the card's model.
|
void |
release(Provider provider)
Uninstalls the given provider; smart cards instantiate a new provider for
each different smart card, in order to support multiple initialisation
parameters, and these custom providers need to be uninstalled once one is
done using them.
|
public Provider acquire(SmartCardTraits traits) throws ProviderException
acquire in class ProviderFactory<SmartCardTraits>traits - the characteristics traits of the smart card whose capabilities the
provider will expose.Provider, or null if none valid could be installed.SmartCardExceptionUnavailableDriverExceptionProviderExceptionpublic void release(Provider provider)
release in class ProviderFactory<SmartCardTraits>provider - the provider to uninstall.Copyright © 2012-2014 Andrea Funtò. See here for terms and conditions.