dev@glassfish.java.net

Re: SecureRandom

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Wed, 26 Aug 2009 21:55:49 -0700

Kedar Mhaswade wrote on 8/26/09 5:39 PM:
>> Maybe someone should just put an instance of SecureRandom in the Habitat
>> so everyone can get it by injection and use it?
> That's doable.

So who should do it?

> One thing we should note is that we need instance of
> SecureRandom
> on both client and server side. In the occurrences of SecureRandom you
> listed,
> at list one is used by asadmin client explicitly. asadmin does not have
> access
> to server's Habitat.

Is any of that code that uses SecureRandom used on both the client and
the server? If so, it would need a fallback in case there's no SecureRandom
in the habitat, and/or we would need to make asadmin add a SecureRandom to
the habitat.