public String decrypt(String strToDecrypt) throws TikaConfigException {
            try {
                Cipher cipher = Cipher.getInstance(CIPHER_TYPE);
                cipher.init(Cipher.DECRYPT_MODE, secretKey);
                return new String(cipher.doFinal(Base64.getDecoder().decode(strToDecrypt)),
                        StandardCharsets.UTF_8);
            } catch (NoSuchAlgorithmException | InvalidKeyException |
                    NoSuchPaddingException | BadPaddingException | IllegalBlockSizeException e) {
                throw new TikaConfigException("bad encryption info", e);
            }
        }
only basic and ntlm are supported

@param authScheme
tika-pipes/tika-httpclient-commons/src/main/java/org/apache/tika/client/HttpClientFactory.java