security providers and ...

Tom Tromey tromey@redhat.com
Fri Aug 16 10:04:00 GMT 2002


>>>>> "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?

Tom



More information about the Java mailing list