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

This is an example class 1 device. More...

Inheritance diagram for com.good.daf.class1.Class1Device:
com.good.daf.DADevice

Public Member Functions

DAMetaData getInfo ()
 Get information about this instance. More...
 
DASession createSession (byte[] authToken)
 Create a new session to make use of the device. More...
 

Detailed Description

This is an example class 1 device.

The device has a single key with an initially-empty value. All keys in all sessions share the same underlying key storage, which is kept only in memory.

If you have a class 1 device, you may use this example by (at a minimum) altering the Class1Key getData and setData calls to have properly-backed persistent storage.

Member Function Documentation

DASession com.good.daf.class1.Class1Device.createSession ( byte[]  authToken)

Create a new session to make use of the device.

This method will be called once per underlying native createSession call, and the result wrapped.

Parameters
authTokenthe auth token necessary to create a session
Returns
a implementor of the DASession interface. Must not be null.
Exceptions
DAErrorif a session cannot be created

Implements com.good.daf.DADevice.

DAMetaData com.good.daf.class1.Class1Device.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.DADevice.


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