ostore.mac
Class QSMACType

java.lang.Object
  |
  +--ostore.mac.QSMACType
All Implemented Interfaces:
QuickSerializable
Direct Known Subclasses:
QSHMACMD5

public abstract class QSMACType
extends Object
implements QuickSerializable

Similar to QSSignature, a class used to identify a Mac type.


Constructor Summary
QSMACType()
           
 
Method Summary
abstract  String algorithm()
          The signing algorithm
abstract  String provider()
          The Mac algorithm's provider
 void to_bytes(byte[] data, int[] offset)
          Store the object in its "on the wire" form in the byte array data, starting at index offset [0], and increment offset [0] by the number of bytes written; if data == null, increment offset [0] by the number of bytes that would have been written otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ostore.util.QuickSerializable
type_code
 

Constructor Detail

QSMACType

public QSMACType()
Method Detail

algorithm

public abstract String algorithm()
The signing algorithm

provider

public abstract String provider()
The Mac algorithm's provider

to_bytes

public void to_bytes(byte[] data,
                     int[] offset)
Description copied from interface: QuickSerializable
Store the object in its "on the wire" form in the byte array data, starting at index offset [0], and increment offset [0] by the number of bytes written; if data == null, increment offset [0] by the number of bytes that would have been written otherwise.
Specified by:
to_bytes in interface QuickSerializable
Following copied from interface: ostore.util.QuickSerializable
Parameters:
data - The byte array to store into, or null.
offset - A single element array whose first element is the index in data to begin writing at on function entry, and which on function exit has been incremented by the number of bytes written.