/** * Generates the result key blob for this exemption mechanism. * * @return the result key blob for this exemption mechanism. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final byte[] genExemptionBlob() throws IllegalStateException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; byte[] result = spiImpl.engineGenExemptionBlob(); generated = true; return result; }
/** * Generates the result key blob for this exemption mechanism and stores it * into the {@code output} buffer at offset {@code outputOffset}. * * @param output * the output buffer for the result key blob. * @param outputOffset * the offset in the output buffer to start. * @return the number of bytes written to the {@code output} buffer. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ShortBufferException * if the provided buffer is too small for the result key blob. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final int genExemptionBlob(byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; int len = spiImpl.engineGenExemptionBlob(output, outputOffset); generated = true; return len; }
/** * Generates the result key blob for this exemption mechanism. * * @return the result key blob for this exemption mechanism. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final byte[] genExemptionBlob() throws IllegalStateException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; byte[] result = spiImpl.engineGenExemptionBlob(); generated = true; return result; }
/** * Generates the result key blob for this exemption mechanism. * * @return the result key blob for this exemption mechanism. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final byte[] genExemptionBlob() throws IllegalStateException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; byte[] result = spiImpl.engineGenExemptionBlob(); generated = true; return result; }
/** * Generates the result key blob for this exemption mechanism. * * @return the result key blob for this exemption mechanism. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final byte[] genExemptionBlob() throws IllegalStateException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; byte[] result = spiImpl.engineGenExemptionBlob(); generated = true; return result; }
/** * Generates the result key blob for this exemption mechanism. * * @return the result key blob for this exemption mechanism. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final byte[] genExemptionBlob() throws IllegalStateException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; byte[] result = spiImpl.engineGenExemptionBlob(); generated = true; return result; }
/** * Generates the result key blob for this exemption mechanism. * * @return the result key blob for this exemption mechanism. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final byte[] genExemptionBlob() throws IllegalStateException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; byte[] result = spiImpl.engineGenExemptionBlob(); generated = true; return result; }
/** * Generates the result key blob for this exemption mechanism. * * @return the result key blob for this exemption mechanism. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final byte[] genExemptionBlob() throws IllegalStateException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; byte[] result = spiImpl.engineGenExemptionBlob(); generated = true; return result; }
/** * Generates the result key blob for this exemption mechanism and stores it * into the {@code output} buffer at offset {@code outputOffset}. * * @param output * the output buffer for the result key blob. * @param outputOffset * the offset in the output buffer to start. * @return the number of bytes written to the {@code output} buffer. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ShortBufferException * if the provided buffer is too small for the result key blob. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final int genExemptionBlob(byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; int len = spiImpl.engineGenExemptionBlob(output, outputOffset); generated = true; return len; }
/** * Generates the result key blob for this exemption mechanism and stores it * into the {@code output} buffer at offset {@code outputOffset}. * * @param output * the output buffer for the result key blob. * @param outputOffset * the offset in the output buffer to start. * @return the number of bytes written to the {@code output} buffer. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ShortBufferException * if the provided buffer is too small for the result key blob. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final int genExemptionBlob(byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; int len = spiImpl.engineGenExemptionBlob(output, outputOffset); generated = true; return len; }
/** * Generates the result key blob for this exemption mechanism and stores it * into the {@code output} buffer at offset {@code outputOffset}. * * @param output * the output buffer for the result key blob. * @param outputOffset * the offset in the output buffer to start. * @return the number of bytes written to the {@code output} buffer. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ShortBufferException * if the provided buffer is too small for the result key blob. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final int genExemptionBlob(byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; int len = spiImpl.engineGenExemptionBlob(output, outputOffset); generated = true; return len; }
/** * Generates the result key blob for this exemption mechanism and stores it * into the {@code output} buffer at offset {@code outputOffset}. * * @param output * the output buffer for the result key blob. * @param outputOffset * the offset in the output buffer to start. * @return the number of bytes written to the {@code output} buffer. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ShortBufferException * if the provided buffer is too small for the result key blob. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final int genExemptionBlob(byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; int len = spiImpl.engineGenExemptionBlob(output, outputOffset); generated = true; return len; }
/** * Generates the result key blob for this exemption mechanism and stores it * into the {@code output} buffer at offset {@code outputOffset}. * * @param output * the output buffer for the result key blob. * @param outputOffset * the offset in the output buffer to start. * @return the number of bytes written to the {@code output} buffer. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ShortBufferException * if the provided buffer is too small for the result key blob. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final int genExemptionBlob(byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; int len = spiImpl.engineGenExemptionBlob(output, outputOffset); generated = true; return len; }
/** * Generates the result key blob for this exemption mechanism and stores it * into the {@code output} buffer at offset {@code outputOffset}. * * @param output * the output buffer for the result key blob. * @param outputOffset * the offset in the output buffer to start. * @return the number of bytes written to the {@code output} buffer. * @throws IllegalStateException * if this {@code ExemptionMechanism} instance is not * initialized. * @throws ShortBufferException * if the provided buffer is too small for the result key blob. * @throws ExemptionMechanismException * if error(s) occur during generation. */ public final int genExemptionBlob(byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException, ExemptionMechanismException { if (!isInit) { throw new IllegalStateException("ExemptionMechanism is not initialized"); } generated = false; int len = spiImpl.engineGenExemptionBlob(output, outputOffset); generated = true; return len; }