tomaswolf commented on issue #590: URL: https://github.com/apache/mina-sshd/issues/590#issuecomment-2322832137
I'm not a fan of yet another system property. There's too many already. I see three things: 1. Why even use a `BouncyCastleRandomFactory` and `BouncyCastleRandom` at all? Why can't we just use Java's own `SecureRandom`? 2. The `PKCS8PEMResourceKeyPairParser` should be changed such that encrypted keys are parsed in a separate class, and we register that separate parser only if the required BC support is present. 3. If we want to make this `RandomFactory` overrideable, use the `ServiceLoader`. If a service can be found for RandomFactory, use that; otherwise fall back to the current code. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org