|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for user and authentication information objects in http requests. A IWDContext represents a user on which behalf connections are made. When authorization is necessary, the context is asked to calculate the credentials which shall be sent to the http server.
Copyright (c) SAP AG 2001-2002
| Method Summary | |
boolean |
appliesCredentials()
Answer if authorization credentials are used in this context. |
boolean |
applyCredentials(IRequester requester,
java.lang.String uri,
IRequest request)
Apply the credentials for a HTTP request. |
boolean |
canTriggerAuthentication(IRequester requester)
Return if authentication responses (HTTP 401) can be triggered in this context. |
void |
endUse(IRequester requester)
This context will no longer be used for the given requester |
java.lang.String |
getCookieHeaderValue(HttpUrl requestUri)
Return string in HTTP header value format for cookies in this context. |
java.util.Map |
getCookies()
|
UserInfo |
getProxyUserInfo()
Return user info for proxy server |
ICredentials |
getSpecialCredentials()
Return any installed special credentials or null if none is
installed |
UserInfo |
getUserInfo()
Return user info for this context. |
boolean |
isNew()
|
void |
openedConnection(IRequester requester)
New connection in requester was opened for this context. |
void |
responseCredentials(IRequester requester,
IResponse response)
Give the context the possiblity to process authenticate information in the response message, like Authenticate-Info. |
void |
setCookie(ICookie cookie)
Sets a new cookie in this context |
void |
setProxyUserInfo(UserInfo ui)
Sets username/password to be used in this context for proxy. |
void |
setSpecialCredentials(ICredentials handler)
Set a special credentials handler which is run before any of the known authentication schemes (basic, digest) are run. |
boolean |
setupCredentials(IRequester requester,
Headers header)
Set the credentials for this context depending on the header information (received from a 401 response). |
boolean |
setupProxyCredentials(IRequester requester,
Headers header)
Set the credentials for this context depending on the header information (received from a 407 response). |
void |
setUserInfo(UserInfo ui)
Sets username/password to be used in this context. |
void |
startUse(IRequester requester)
This context will be used for the given requester |
| Method Detail |
public UserInfo getUserInfo()
public UserInfo getProxyUserInfo()
public java.util.Map getCookies()
public java.lang.String getCookieHeaderValue(HttpUrl requestUri)
null .requestUri - TBD: Description of the incoming method parameternullpublic boolean isNew()
public void setCookie(ICookie cookie)
cookie - public void setUserInfo(UserInfo ui)
ui - userInfo to be setpublic void setProxyUserInfo(UserInfo ui)
ui - proxyUserInfo to be setpublic boolean appliesCredentials()
public boolean applyCredentials(IRequester requester,
java.lang.String uri,
IRequest request)
throws WcmException
setupCredentials . The credentials are
applied to the request header fields.uri - the requested urirequest - the request to calculate the credentials forrequester - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
public boolean setupCredentials(IRequester requester,
Headers header)
throws WcmException
requester - TBD: Description of the incoming method parameterheader - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
public boolean setupProxyCredentials(IRequester requester,
Headers header)
throws WcmException
requester - TBD: Description of the incoming method parameterheader - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
public void responseCredentials(IRequester requester,
IResponse response)
throws WcmException
requester - TBD: Description of the incoming method parameterresponse - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situationpublic void setSpecialCredentials(ICredentials handler)
handler - to installed (or null to remove)public ICredentials getSpecialCredentials()
null if none is
installedpublic void openedConnection(IRequester requester)
requester - which opened new connectionpublic void startUse(IRequester requester)
requester - public void endUse(IRequester requester)
requester - public boolean canTriggerAuthentication(IRequester requester)
requester - to work in
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||