LPS-32137 Source formatting
LPS-30766 Use Mac.getInstance() to initialize crypto for plugins with security manager enabled.
LPS-30766 Source formatting
LPS-30766 Fix for Windows

On Windows javax.crypto.SunJCE_h creates new SecurityManager
LPS-30766 Source formatting
LPS-30766 Add runtime and security permission checks
LPS-30766 Add just the parts that are needed for the tests to work