commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8040] New: - need a way to set default credential in HttpState
Date Fri, 12 Apr 2002 23:27:51 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message