Digital Authentication Framework  6.0.1.37
Public Member Functions | List of all members
com.good.daf.basic.BasicSession Class Reference

This implementation of DASession exposes its metadata using BasicMetadata, and has a list of available keys. More...

Inheritance diagram for com.good.daf.basic.BasicSession:
com.good.daf.DASession

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 ()
 

Detailed Description

This implementation of DASession exposes its metadata using BasicMetadata, and has a list of available keys.

Member Function Documentation

void com.good.daf.basic.BasicSession.addKey ( DAKey  k)

Add a key to the session.

Parameters
kkey
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.)

Returns
the metadata object for this instance. Must not be null.

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.

Parameters
indexan index >= 0 and < getKeyCount()
Returns
a DAKey implementor, or null on error.

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.

Parameters
serialserial number to search keys for.
Returns
a DAKey implementor, or null on error.

Implements com.good.daf.DASession.

int com.good.daf.basic.BasicSession.getKeyCount ( )
Returns
the number of keys available in this session.

Implements com.good.daf.DASession.

boolean com.good.daf.basic.BasicSession.isConnected ( )
Returns
true if the device is still connected.

Implements com.good.daf.DASession.


The documentation for this class was generated from the following file: