Digital Authentication Framework 4.2.0.30
Public Member Functions | Static Package Functions | Package Attributes | Static Package Attributes

com.good.daf.class1.Class1Key Class Reference

Key implementation for the com.good.daf.class1.Class1Device. More...

Inheritance diagram for com.good.daf.class1.Class1Key:
com.good.daf.basic.BasicKey com.good.daf.DAKey

List of all members.

Public Member Functions

DAMetaData getInfo ()
 Get information about this instance.
byte[] getData () throws DAError
 Returns the contents of a storage-only key.
void setData (byte[] d) throws DAError
 Sets the contents of a storage-only key.

Static Package Functions

static Class1Key build ()

Package Attributes

BasicMetaData meta = new BasicMetaData()

Static Package Attributes

static byte[] data = new byte[] {}

Detailed Description

Key implementation for the com.good.daf.class1.Class1Device.

The storage offered by all instances of this key is backed by the same global location: writes to one instance will be reflected in reads from an unrelated instance. This makes it somewhat useless, except for example purposes.


Member Function Documentation

byte [] com.good.daf.class1.Class1Key.getData ( ) throws DAError

Returns the contents of a storage-only key.

Returns:
the contents of the storage (must not be null).
Exceptions:
DAErroron failure

Reimplemented from com.good.daf.basic.BasicKey.

DAMetaData com.good.daf.class1.Class1Key.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.DAKey.

void com.good.daf.class1.Class1Key.setData ( byte[]  data) throws DAError

Sets the contents of a storage-only key.

Parameters:
datathe new data to write to the storage. Never null.
Exceptions:
DAErroron failure

Reimplemented from com.good.daf.basic.BasicKey.


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