In my program I have been using Apache Commons HttpClient to do all the network work, well I'm now trying to convert it all into HttpURLConnection. So I'm not using HttpClient anymore. It's going great except one problem; Authorization. I understand how to do Basic Authorization but I'm confused on Digest Authorization. So you connect to the server get the WWW-Authenticate header information and return that data with the username and password? Well it's more than that but I don't really know how to set up it by encrypting it and stuff. I have been looking at some examples but they are mostly using HttpClient instead. Does Java have an Authentication class cause I have seen some examples with it but no luck. But I would like to know how to do it manually though. Thanks in advance.