this.cryptoAlgorithm = cryptoAlgorithm;
this.cryptoKey = cryptoKey;
}
protected ClientKeyBlock innerEncode(RandomSource random) throws InsertException {
CompatibilityMode cmode = ctx.getCompatibilityMode();
boolean pre1254 = !(cmode == CompatibilityMode.COMPAT_CURRENT || cmode.ordinal() >= CompatibilityMode.COMPAT_1255.ordinal());
try {
return innerEncode(random, uri, sourceData, isMetadata, compressionCodec, sourceLength, ctx.compressorDescriptor, pre1254, cryptoAlgorithm, cryptoKey);
} catch (KeyEncodeException e) {
Logger.error(SingleBlockInserter.class, "Caught "+e, e);
throw new InsertException(InsertExceptionMode.INTERNAL_ERROR, e, null);