Digital Authentication Framework
6.0.1.37
|
This implementation of DASession exposes its metadata using BasicMetadata, and has a list of available keys. More...
Public Member Functions | |
void | addKey (DAKey k) |
Add a key to the session. More... | |
DAMetaData | getInfo () |
Get information about this instance. More... | |
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... | |
boolean | isConnected () |
This implementation of DASession exposes its metadata using BasicMetadata, and has a list of available keys.
void com.good.daf.basic.BasicSession.addKey | ( | DAKey | k | ) |
Add a key to the session.
k | key |
DAMetaData com.good.daf.basic.BasicSession.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.)
Implements com.good.daf.DASession.
DAKey com.good.daf.basic.BasicSession.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() |
Implements com.good.daf.DASession.
DAKey com.good.daf.basic.BasicSession.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. |
Implements com.good.daf.DASession.
int com.good.daf.basic.BasicSession.getKeyCount | ( | ) |
Implements com.good.daf.DASession.
boolean com.good.daf.basic.BasicSession.isConnected | ( | ) |
Implements com.good.daf.DASession.