From: Stracchino, P. <Per...@bl...> - 2005-08-19 14:43:05
|
Hi=20 =20 Has anyone had any success using JZKit to connect to a Z3950 server requiring user/password authentication? Setting the userId and credentials and ZAuthenticationMethod as the authentication method in Z3950ServiceFactory seemed the obvious technique.... =20 ZAuthenticationMethod auth =3D new ZAuthenticationMethod(); auth.setAuthType(3); //ie as idpass type auth.setUserId("username"); auth.setGroupId(""); //since idpass authetication type appears to expect this as an empty String if no actual group exists auth.setCredentials("password"); factory =3D new Z3950ServiceFactory("host",port); =20 factory.setApplicationContext(app_context);=20 factory.setAuthMethod(auth); =20 However this doesnt seem to do the trick, although apart from use of the authentication method we are using the same code to successfully connect to and search a similar Z3950 database which does not require authentication, so the rest of our code appears ok. =20 Any advice/experiences would be much appreciated! =20 Cheers Peri *************************************************************************= * =20 Experience the British Library online at www.bl.uk =20 Help the British Library conserve the world's knowledge. Adopt a Book. = www.bl.uk/adoptabook =20 The Library's St Pancras site is WiFI - enabled =20 *************************************************************************= * =20 The information contained in this e-mail is confidential and may be = legally privileged. It is intended for the addressee(s) only. If you are = not the intended recipient, please delete this e-mail and notify the = pos...@bl... : The contents of this e-mail must not be disclosed or = copied without the sender's consent.=20 =20 The statements and opinions expressed in this message are those of the = author and do not necessarily reflect those of the British Library. The = British Library does not take any responsibility for the views of the = author.=20 =20 *************************************************************************= * |