Digital Authentication Framework
6.0.1.37
|
This type describes a session with a device. More...
Public Member Functions | |
DAMetaData | getInfo () |
Get information about this instance. More... | |
boolean | isConnected () |
int | getKeyCount () |
DAKey | getKey (int index) |
Returns the nth key available in this session. More... | |
DAKey | getKey (String serial) |
Returns the key with the given serial number (DAAttrib.SERIAL). More... | |
This type describes a session with a device.
What a 'session' means is specific to the type of device. For simple devices a session might not be a useful concept, but for devices supporting on-line, authenticated, stateful communications a session would represent this communications session.
A DASession offers the important ability to enumerate and obtain the available keys available from the connected device, represented by DAKey instances.
DAMetaData com.good.daf.DASession.getInfo | ( | ) |
Get information about this instance.
This method will be called once shortly after construction and the result wrapped by the native translation layer.
This method is not allowed to fail except fatally (OutOfMemoryError, etc.)
Implemented in com.good.daf.basic.BasicSession.
DAKey com.good.daf.DASession.getKey | ( | int | index | ) |
Returns the nth key available in this session.
For a given session, keys should be placed in a consistent order and made available through this method. The order need not be consistent between sessions.
You may return null on error, or if index is smaller than zero or greater than or equal to the number of keys.
index | an index >= 0 and < getKeyCount() |
Implemented in com.good.daf.basic.BasicSession.
DAKey com.good.daf.DASession.getKey | ( | String | serial | ) |
Returns the key with the given serial number (DAAttrib.SERIAL).
You may return null on error, for instance if the key is not found.
serial | serial number to search keys for. |
Implemented in com.good.daf.basic.BasicSession.
int com.good.daf.DASession.getKeyCount | ( | ) |
Implemented in com.good.daf.basic.BasicSession.
boolean com.good.daf.DASession.isConnected | ( | ) |
Implemented in com.good.daf.basic.BasicSession.