remove use of java nio in securityManager.

- Nio is not supportet by java 1.6, and unneeded.