|
Oracle Application Server HTTPClient Java API Reference 10g Release 3 (10.1.3.1.0) B32117-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is the interface that a username/password prompter must implement. The DefaultAuthHandler invokes an instance of this each time it needs a username and password to satisfy an authorization challenge (for which it doesn't already have the necessary info). This can be used to implement a different UI from the default popup box for soliciting usernames and passwords, or for using an altogether different way of getting the necessary auth info.
DefaultAuthHandler.setAuthorizationPrompter(HTTPClient.AuthorizationPrompter)| Method Summary | |
NVPair |
getUsernamePassword(AuthorizationInfo challenge, boolean forProxy)This method is invoked whenever a username and password is required for an authentication challenge to proceed. |
| Method Detail |
public NVPair getUsernamePassword(AuthorizationInfo challenge,
boolean forProxy)
challenge - the parsed challenge from the server; the host, port, scheme, realm and params are set to the values given by the server in the challenge.forProxy - true if the info is for a proxy (i.e. this is part of handling a 407 response); false otherwise (i.e. the response code was 401).
|
Oracle Application Server HTTPClient Java API Reference 10g Release 3 (10.1.3.1.0) B32117-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||