byte retrieveCredentials() throws IOException
Retrieves the credentials.
The actual credentials are particular to the authentication scheme:
Basic: clear text password (
Digest: encrypted "username:realm:password" as per the algorithm. For example, if the algorithm were MD5 then the following command would produce the appropriate value (
echo -n "username:realm:password" | md5sum
Negotiate: as necessary for authentication
IOException- If fails to retrieve the credentials.
Copyright © 2005–2016. All rights reserved.