The easiest way is to use the java Authenticator class as described here http://docs.oracle.com/javase/6/docs/technotes/guides/net/http-auth.html
And use HTTPS, basic authentication is sending the password base64 encoded which is the same as sending it in plain text. Christian Zitat von [email protected]: > Hi All, > > We are trying to move to a WMS supplier of AP. Our current supplier > accepts the user name and password in the URL. The supplier we are > moving to requires HTTP(S) basic Authentication with the > userid/password in the http header. > > I have looked at the WMSMapLayer/GetMapRequest/WebMapServer classes > and cannot find a way to pass the security information. > > Can anyone offer some advice on the best approach please? > > Thanks > > Ron > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > GeoTools-GT2-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
