Digital Authentication Framework
6.0.1.37
|
This is an example class 3 device. More...
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... | |
This is an example class 3 device.
The device has a single RSA key pair with a value generated randomly at static initialisation-time. This key object offers RSAES-PKCS1_v1_5 encryption and decryption.
If you have a class 3 device which can do RSA encryption and decryption, you may use this example by (at a minimum) deleting the key generation in Class3Key, and altering the Class3Key encrypt and decrypt calls to talk to your hardware accessory.
DASession com.good.daf.class3.Class3Device.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.
authToken | the auth token necessary to create a session |
DAError | if a session cannot be created |
Implements com.good.daf.DADevice.
DAMetaData com.good.daf.class3.Class3Device.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.DADevice.