public class SecureModifier extends java.lang.Object implements IModifier
Modifier and Type | Class and Description |
---|---|
class |
SecureModifier.StreamConnector
The stream connector provides AES encrypted input and output streams depending
on the implementation of the underlying stream connector.
|
Modifier and Type | Field and Description |
---|---|
static short |
PLUGIN_ABILITY
The ability of the plug-in. [2][0].
|
static java.lang.String |
PROPERTY_SYSTEM
The property in the plug-in description that contains a
system id.
|
EXTENSION_COMPRESSION, EXTENSION_DISCOVERY, EXTENSION_ENCRYPTION, EXTENSION_ROUTING, EXTENSION_SEMANTIC, EXTENSION_SERIALIZATION, EXTENSION_TRANSCEIVER
Constructor and Description |
---|
SecureModifier(IKeyStore keyStore)
Creates a new secure modifier.
|
Modifier and Type | Method and Description |
---|---|
PluginDescription |
getPluginDescription()
Returns the plug-in description of this plug-in.
|
IStreamConnector |
openSession(IStreamConnector connector,
ISession context)
Determines whether the plugin is in a valid state.
|
boolean |
prepareSession(PluginDescription description,
NFCollection collection,
ISession session)
Negotiates the session properties of a connection with a remote target.
|
void |
setPluginManager(IPluginManager manager)
Sets the plug-in manager that is used to retrieve remote plug-in descriptions.
|
void |
start()
Called to start the plug-in.
|
void |
stop()
Called to stop the plug-in.
|
public static java.lang.String PROPERTY_SYSTEM
public static final short PLUGIN_ABILITY
public SecureModifier(IKeyStore keyStore)
public boolean prepareSession(PluginDescription description, NFCollection collection, ISession session)
prepareSession
in interface IModifier
collection
- The non-functional parameters.session
- The session data used to create a connector.description
- The plug-in description of the remote plug-in.public IStreamConnector openSession(IStreamConnector connector, ISession context) throws java.io.IOException
openSession
in interface IModifier
connector
- The connector used to create the connector.context
- The session data used to communicate with a remote plugin.java.io.IOException
- Thrown if the connector could not be created.public void start()
public void stop()
public void setPluginManager(IPluginManager manager)
setPluginManager
in interface IModifier
manager
- The plug-in manager.public PluginDescription getPluginDescription()
getPluginDescription
in interface IPlugin