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

This is a simple DAMetaData implementation backed by type-specific maps of attributes to values. More...

Inheritance diagram for com.good.daf.basic.BasicMetaData:
com.good.daf.DAMetaData

Public Member Functions

byte[] getData (DAAttrib attr, long index)
 Return the byte string value for the given attribute. More...
 
String getString (DAAttrib attr)
 Return the string value for the given attribute. More...
 
Boolean getFlag (DAAttrib attr)
 Return the boolean value for the given attribute. More...
 
Long getSize (DAAttrib attr)
 Return the size value for the given attribute. More...
 
void setData (DAAttrib attr, byte[] value)
 Sets an attribute byte string value. More...
 
void setString (DAAttrib attr, String value)
 Sets an attribute string value. More...
 
void setFlag (DAAttrib attr, boolean value)
 Sets an attribute boolean value. More...
 
void setSize (DAAttrib attr, long size)
 Sets an attribute size value. More...
 

Detailed Description

This is a simple DAMetaData implementation backed by type-specific maps of attributes to values.

Member Function Documentation

byte [] com.good.daf.basic.BasicMetaData.getData ( DAAttrib  which,
long  index 
)

Return the byte string value for the given attribute.

Parameters
whichnames the attribute whose value is requested
indexto extract additional values; for multi-valued attributes (like DA_CERTIFICATE, where a full chain of certificates might be available). typically zero.
Returns
the value, or null if there is no such attribute with a byte string value, or no value at that index.

Implements com.good.daf.DAMetaData.

Boolean com.good.daf.basic.BasicMetaData.getFlag ( DAAttrib  which)

Return the boolean value for the given attribute.

Parameters
whichnames the attribute whose value is requested
Returns
the value, or null if there is no such attribute with a boolean value.

Implements com.good.daf.DAMetaData.

Long com.good.daf.basic.BasicMetaData.getSize ( DAAttrib  which)

Return the size value for the given attribute.

Parameters
whichnames the attribute whose value is requested
Returns
the value, or null if there is no such attribute with a size value.

Implements com.good.daf.DAMetaData.

String com.good.daf.basic.BasicMetaData.getString ( DAAttrib  which)

Return the string value for the given attribute.

Parameters
whichnames the attribute whose value is requested
Returns
the value, or null if there is no such attribute with a string value.

Implements com.good.daf.DAMetaData.

void com.good.daf.basic.BasicMetaData.setData ( DAAttrib  attr,
byte[]  value 
)

Sets an attribute byte string value.

Parameters
attrattribute to set
valuevalue
void com.good.daf.basic.BasicMetaData.setFlag ( DAAttrib  attr,
boolean  value 
)

Sets an attribute boolean value.

Parameters
attrattribute to set
valuevalue
void com.good.daf.basic.BasicMetaData.setSize ( DAAttrib  attr,
long  size 
)

Sets an attribute size value.

Parameters
attrattribute to set
valuevalue. this must be non-negative
void com.good.daf.basic.BasicMetaData.setString ( DAAttrib  attr,
String  value 
)

Sets an attribute string value.

Parameters
attrattribute to set
valuevalue

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