05.11.2014 Views

Getting started with RSA BSAFE® Share For JAVA™ Platform - EMC ...

Getting started with RSA BSAFE® Share For JAVA™ Platform - EMC ...

Getting started with RSA BSAFE® Share For JAVA™ Platform - EMC ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Upgrading: Sun’s JRE 6.0 to <strong>Share</strong> for Java<br />

Recommended Code Changes: SSLContext<br />

Issue:<br />

– SecureRandom parameters are sometimes passed to<br />

SSLContext.init. Sometimes this makes sense (for performance<br />

reasons, or because a special HSM SecureRandom object is<br />

being used), but usually, it is better to use the default.<br />

Review calls to the<br />

javax.net.ssl.SSLContext.init(KeyManager[] km,<br />

TrustManager[] tm, SecureRandom random) method.<br />

Passing null for the random parameter to the init method<br />

allows the JSSE provider to choose the best SecureRandom<br />

implementation.<br />

12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!