private static SecretKeySpec setKey(String myKey) throws TikaConfigException {
            //TODO: sha-256?
            try {
                byte[] key = myKey.getBytes(StandardCharsets.UTF_8);
                MessageDigest sha = MessageDigest.getInstance("SHA-1");
                key = sha.digest(key);
                key = Arrays.copyOf(key, 16);
                return new SecretKeySpec(key, "AES");
            } catch (NoSuchAlgorithmException e) {
                throw new TikaConfigException("bad key", e);
            }
        }
only basic and ntlm are supported

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