public class BufferCmd extends Object
BufferCmd implements the internal buffer functions of the YubiHSM.| Modifier and Type | Method and Description |
|---|---|
static int |
loadData(DeviceHandler device,
byte[] data,
int offset)
Load data into the YubiHSMs internal buffer.
|
static int |
loadData(DeviceHandler device,
String data,
int offset)
Load data into the YubiHSMs internal buffer.
|
static int |
loadRandomData(DeviceHandler device,
int length,
int offset)
Load random data into the YubiHSMs internal buffer.
|
public static int loadData(DeviceHandler device, String data, int offset) throws YubiHSMErrorException
device - the device handlerdata - the data to load into the internal bufferoffset - the offset where to load the data, if set to 0 the buffer will reset before loading the dataYubiHSMErrorException - if validation fail for some values returned by the YubiHSMpublic static int loadData(DeviceHandler device, byte[] data, int offset) throws YubiHSMErrorException
device - the device handlerdata - the data to load into the internal bufferoffset - the offset where to load the data, if set to 0 the buffer will reset before loading the dataYubiHSMErrorException - if validation fail for some values returned by the YubiHSMpublic static int loadRandomData(DeviceHandler device, int length, int offset) throws YubiHSMErrorException
device - the device handlerlength - the length of the generated dataoffset - the offset where to load the data, if set to 0 the buffer will reset before loading the dataYubiHSMErrorException - if validation fail for some values returned by the YubiHSMCopyright © 2011-2016 United ID. All Rights Reserved.