On Wed, 2007-02-14 at 16:18 +0000, Bob Arnott wrote: > Oleg Kalnichevski wrote: > > On Wed, 2007-02-14 at 15:49 +0000, Bob Arnott wrote: > >> Oleg Kalnichevski wrote: > >>> On Wed, 2007-02-14 at 15:18 +0000, Bob Arnott wrote: > >>>> Has anyone integrated the Block TEA into HttpClient...? I've not fiddled > >>>> with the internals of HttpClient before, so I'm not really sure where I > >>>> need to begin, can anyone give me any pointers...? > >>> Bob, > >>> > >>> What is it you want to be using the Block TEA encryption for? > >> I have to talk to some home grown servers that use it. I know what I > >> need to do, I just don't know where in the HttpClient code I need to > >> modify or insert the BTEA logic. > >> > > > > Bob, > > > > What _specifically_ you intend to be using BTEA for? Some custom > > authentication scheme of a sort? Content coding (encryption/decryption > > of request/response content transmitted across the wire)? Something > > else? > > Sorry, not with it today... Encryption of request and decryption of > the resulting response based on a settable key. > > Cheers, >
Bob, For incoming entities HttpMethod#getResponseBodyAsStream() will give you the content input stream, which you can feed into a BTEA decoder. For outgoing entities you should implement RequestEntity interface and use its RequestEntity#writeRequest(OutputStream out) method to stream out data produced by a BTEA encoder. Hope this helps Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
