This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: security providers and ...
- From: Tom Tromey <tromey at redhat dot com>
- To: "Raif S. Naffah" <raif at fl dot net dot au>
- Cc: Vladimir Puskas <vpuskas at eunet dot yu>, Mark Wielaard <mark at klomp dot org>, java at gcc dot gnu dot org
- Date: 16 Aug 2002 11:06:02 -0600
- Subject: Re: security providers and ...
- References: <02042318321700.06739@mcphails><200207091542.43343.vpuskas@eunet.yu><1026685143.1941.525.camel@elsschot><200208160102.33016.vpuskas@eunet.yu> <3D5CC5D2.4080605@fl.net.au>
- Reply-to: tromey at redhat dot com
>>>>> "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