Bucket decode(BucketFactory bf, int maxLength, boolean dontCompress, boolean forceNoJCA) throws CHKDecodeException, IOException { if(key.cryptoAlgorithm == Key.ALGO_AES_PCFB_256_SHA256) return decodeOld(bf, maxLength, dontCompress); else if(key.cryptoAlgorithm == Key.ALGO_AES_CTR_256_SHA256) { if(Rijndael.AesCtrProvider == null || forceNoJCA) return decodeNewNoJCA(bf, maxLength, dontCompress); else return decodeNew(bf, maxLength, dontCompress); } else throw new UnsupportedOperationException(); }