Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: removed ref to MSC10-J

...

To further limit the exposure time of the sensitive password, follow the rule MSC10-J. Limit the lifetime of sensitive data by replacing replace BufferedReader with a direct NIO buffer, which can be cleared immediately after use.

Noncompliant Code Example (hardcoded database password)

...