public final class SmartCardService
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static SmartCardService |
getInstance()
Gets the single instance of SmartCardService.
|
Plugin |
getPlugin(java.lang.String name)
Gets the plugin whose name is provided as an argument.
|
java.util.Map<java.lang.String,Plugin> |
getPlugins()
Gets the plugins.
|
java.lang.String |
getVersion()
Gets the version API, (the version of the sdk).
|
boolean |
isRegistered(java.lang.String pluginName)
Check weither a plugin is already registered to the platform or not
|
Plugin |
registerPlugin(PluginFactory pluginFactory)
Register a new plugin to be available in the platform if not registered yet
|
void |
unregisterPlugin(java.lang.String pluginName)
Unregister plugin from platform
|
public static SmartCardService getInstance()
public Plugin registerPlugin(PluginFactory pluginFactory)
pluginFactory
- plugin factory to instantiate plugin to be addedKeyplePluginInstantiationException
- if instantiation failedjava.lang.IllegalStateException
- if the plugin has already been registered.public void unregisterPlugin(java.lang.String pluginName)
pluginName
- plugin namejava.lang.IllegalStateException
- if the plugin or his reader(s) are already unregisteredpublic boolean isRegistered(java.lang.String pluginName)
pluginName
- name of the plugin to be checkedpublic java.util.Map<java.lang.String,Plugin> getPlugins()
public Plugin getPlugin(java.lang.String name)
name
- the plugin nameKeyplePluginNotFoundException
- if the wanted plugin is not foundpublic java.lang.String getVersion()