True, but it's not the base characteristics that I need to update; the
security packages aren't part of TINI's ROM, they're just loaded in by
TINIConvertor from the Java SDK, so updating the SDK will update the
packages. However, the update from _02 to _03 doesn't change the API, so it
would only have fixed the problem if it was actually an internal bug, which,
as it turned out, it wasn't.
I was able to get a little farther with the RADIUS client class by adding an
instance of the sun.security.provider.Sun class to the
java.security.Security class using the addProvider method. However, it still
couldn't load in MD5 because the sun.security.provider.MD5 class wasn't
loaded in by TINIConvertor. So, I eventually forced TINIConvertor to load in
that MD5 class by explicitly making an unused instantiation of it, and after
that the RADIUS client class worked.
For anyone looking for a RADIUS client java class for a TINI, this one was
called jradius and was in version 0.9.6
From: Marc Nicholas <marc-uEr7QD5cFFrZKC0ZTTeLDg@xxxxxxxxxxxxxxxx>
Reply-To: marc-uEr7QD5cFFrZKC0ZTTeLDg@xxxxxxxxxxxxxxxx
To: Nexus Scorpion <nexus_scorpion-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx>
CC: <tini-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx>
Subject: Re: [TINI] RADIUS client unable
tousejava.security.MessageDigest.getInstance method
Date: Mon, 16 Jun 2003 18:41:27 -0400
Remember that, from a pure Java structure point of view, TINI is JDK1.1.8
plus application specific extras.
You downloading JDK1.4 on your PC won't increase TINIs base Java
capabilities unless you start adding your own foundations to the TINI
classes.
Make sense?
-marc
On 16/6/03 12:58, "Nexus Scorpion"
<nexus_scorpion-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx> wrote:
> J2SE is what I'm using. Right now I've got version 1.4.1_02, although
I'm
> downloading 1.4.1_03 just to see if it makes any difference, but I don't
> expect it will.
>
> I was hoping it might be possible to figure out what part of J2SE
controls
> the getInstance of an MD5, and somehow put that into the TINI. Sounds
like a
> long shot though, and I don't know where to start.
>
>> From: Marc Nicholas <marc-uEr7QD5cFFrZKC0ZTTeLDg@xxxxxxxxxxxxxxxx>
>> Reply-To: marc-uEr7QD5cFFrZKC0ZTTeLDg@xxxxxxxxxxxxxxxx
>> To: Nexus Scorpion <nexus_scorpion-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx>,
<tini@xxxxxxxxxxx>
>> Subject: Re: [TINI] RADIUS client unable to
>> usejava.security.MessageDigest.getInstance method
>> Date: Fri, 13 Jun 2003 19:59:55 -0400
>>
>> MD5 is a hashing function (message digest).
>>
>> AFAIK, you need J2SE to have class available.
>>
>> If you feel like hacking the RADIUS client, here's some example Java
MD5
>> code:
>>
>> http://www.jonh.net/~jonh/md5/MD5.java
>>
>>
>> -marc
>>
>>
>> On 13/6/03 19:32, "Nexus Scorpion"
<nexus_scorpion-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx> wrote:
>>
>>> Okay, so I'm trying to use a RADIUS client for my TINI, but in the
>>> constructor for the client class there is the following line:
>>>
>>> MessageDigest msg = MessageDigest.getInstance("MD5");
>>>
>>> where MessageDigest is the java.security.MessageDigest class. When I
run
>>> this, this line throws a java.security.NoSuchAlgorithmException every
>> time.
>>> Apparently MD5 is a security algorithm (which I am not familiar with)
>> and
>>> this method retrieves an instance of it (I don't see why we should
need
>>> instances of algorithms, but apparently someone does).
>>>
>>> The Java API's description of the MessageDigest class seems to
indicate
>> that
>>> the available algorithms are platform-specific (a conclusion we draw
in
>> part
>>> from the line "Throws: NoSuchAlgorithmException - if the algorithm is
>> not
>>> available in the caller's environment.")
>>>
>>> I was hoping someone out here might be familiar with these classes and
>> might
>>> know of a possible solution. Any ideas?
>>>
>>> _________________________________________________________________
>>> Tired of spam? Get advanced junk mail protection with MSN 8.
>>> http://join.msn.com/?page=features/junkmail
>>>
>>> _______________________________________________
>>> TINI mailing list
>>> TINI-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx
>>> To UNSUBSCRIBE, edit your profile, or see list archives:
>>> http://lists.dalsemi.com/mailman/listinfo/tini
>>>
>>
>>
>> --------------------------------------------------
>> Marc Nicholas Geekythings Inc. C/416.543.4896
>> UNIX, Database, Security and Networking Consulting
>>
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
--------------------------------------------------
Marc Nicholas Geekythings Inc. C/416.543.4896
UNIX, Database, Security and Networking Consulting
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini