Changed `getEncoded` for both EC and RSA to return a copy of the internal key array to avoid mutability issues.
------------- Commit messages: - updated copywrite - Fixed getEncoded for CRSAPublicKey - Fixed imports and formatting - Modify getEncoded to return copy of encoding. Added test. Changes: https://git.openjdk.org/jdk/pull/14425/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14425&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8308808 Stats: 33 lines in 2 files changed: 30 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/14425.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/14425/head:pull/14425 PR: https://git.openjdk.org/jdk/pull/14425