This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: security providers and ...


Tom Tromey wrote:
"Raif" == Raif S Naffah <raif@fl.net.au> writes:

Raif> i think the cure is:

Raif> 1. to catch the ClassCastException,
Raif> 2. test if the newly instantiated class is an instance of
Raif> java.security.MessageDigestSpi,
Raif> 3. if it isnt re-throw the exception, otherwise
Raif> 4. wrap the newly instantiated class in a proxy class that channels the
Raif> MessageDigest calls to the wrapped Spi (inner) class.

This seems reasonable to me, but then I don't really know that much
about java.security :-).  Could you submit a PR for this problem?  Or,
if you like, a patch?
i'll co-ordinate with Mark (Wielaard) for both.


cheers;
rsn


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]