public void decrypt()

in encryption/src/main/java/org/apache/solr/encryption/crypto/CharStreamEncrypter.java [158:183]


  public void decrypt(Reader inputReader, int inputSizeHint, byte[] key, Appendable output)
    throws IOException {
    // Don't use jdk Base64.getDecoder().wrap() because it's buggy.
    int bufferSize = getBufferSize(inputSizeHint);
    try (InputStreamReader decryptedInputReader =
           new InputStreamReader(
             new DecryptingInputStream(
               new Base64InputStream(
                 new ReaderInputStream(
                   inputReader,
                   StandardCharsets.ISO_8859_1,
                   bufferSize
                 )
               ),
               key,
               factory
             ),
             StandardCharsets.UTF_8
           )
    ) {
      transfer(decryptedInputReader,
               toWriter(output),
               bufferSize
      );
    }
  }