Alan, Please download the sipunit source distribution from http://www.cafesip.org/downloads.html#SipUnit (you'll see a link there that will take you to a SourceForge page and you want the sipunit-src-...zip file) and take a look at the code starting at SipPhone.processAuthChallenge() - it is called by register() as you mentioned and also other places that need to handle auth. It uses SipSession.getAuthorization() and ultimately MessageDigestAlgorithm.calculateResponse() is called which does the real work - those methods were borrowed from the Sip Communicator project (package net.java.sip.communicator.sip.security.SipSecurityManager, its author is Emil Ivov) and slightly modified to fit here. Thanks to them for making it publicly available.
Good luck- Becky Amit Chatterjee wrote: >Alan, > >Sorry I could not reply earlier. In the Jiplet project, you can find the >examples of SIP server-side authentication using digest by looking at >the classes org.cafesip.jiplet.cma.SecurityConstraintManager and >org.cafesip.jiplet.realms.MessageDigestAlgorithm. Basically, take a look >at both the packages and you will see how the server-side works. > >The SipUnit project contains examples of SIP client-side authentication. >I dont know the details. I am posting to the sipunit mailing list so >that sipunit developer can respond. > >Also, make sure you have understood the RFC - >http://www.faqs.org/rfcs/rfc2617.html . > >Hope this helps, >Amit > >Alan wrote: > > >>Message body follows: >> >>Hi Amit, >> >>Thx for your support and thx for developing jiplet in the >>first place. Idea is excellent, and note that i am using >>jiplet for my master thesis application(i hope that is ok >>with you ?) >> >>I am very good with SIP, but have still to understand the >>jain API for it. Right now i am writing a small client, and >>i need to register it to the jiplet container. As a server >>app i am using your reference Registrar(atleast untill i >>develop my own). So my question is: could you please provide >>me with an example on how do you process the digest >>authentication (i know you have it in sipunit - >>SipPhone.register, but i don't have the source)? >> >>The idea is that i am making a small media server and i want >>to register it to jiplet container same as the other user, >>and therefore i need authentication. >> >>I also use skype, and if you will want to get in touch >>please contact me (skype name is grunf911). >> >>BR, and thanks >> >>Alan >> >>-- >>This message has been sent to you, a registered SourceForge.net user, >>by another site user, through the SourceForge.net site. This message >>has been delivered to your SourceForge.net mail alias. You may reply >>to this message using the "Reply" feature of your email client, or >>using the messaging facility of SourceForge.net at: >>https://sourceforge.net/sendmessage.php?touser=1594187 >> >> >> >> >> >> > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Cafesip-jiplet mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/cafesip-jiplet > > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Cafesip-sipunit mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cafesip-sipunit
