public final int genExemptionBlob (byte[] output) throws IllegalStateException, ShortBufferException, ExemptionMechanismException

Generates the exemption mechanism key blob, and stores the result in the output buffer.

If the output buffer is too small to hold the result, a ShortBufferException is thrown. In this case, repeat this call with a larger output buffer. Use getOutputSize to determine how big the output buffer should be.

Parameters:
output    the buffer for the result

Returns:  the number of bytes stored in output

Exceptions:
IllegalStateException    if this exemption mechanism is in a wrong state (e.g., has not been initialized).
ShortBufferException    if the given output buffer is too small to hold the result.
ExemptionMechanismException    if problem(s) encountered in the process of generating.