basic authentication, declared in RFC2617, needs an base64 encoder.
you guess right, unfortunaly you cant - but you can take advantage of
http://kobjects.org/src/org/kobjects/
i guess, thats exactly what you need, after understanding the rfc2617authentication scheme.
have fun
-michael