You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/04/13 01:27:51 UTC

DO NOT REPLY [Bug 8040] New: - need a way to set default credential in HttpState

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8040>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8040

need a way to set default credential in HttpState

           Summary: need a way to set default credential in HttpState
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HttpClient
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: xiaowei@stratify.com


Currently, each credential in HttpState is associated with a realm. This makes 
perfect sense from a httpclient developer. However, in reallife use, the user 
may not know the name of the realm and just vaguely know that the credential 
for such site is such. So I suggest a way to set the default credential in 
HttpState. When the code calls HttpState.getCredentials(realm), it first lookup 
if there is anything associated with that realm first. If not, it check to see 
if there is some default credential in HttpState. 

The simplest way to accomplish this is intepret credentials associated with 
null realm in setCredentials as the default credential.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>