|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpAuthenticator
ColonyHttpAuthenticator is the interface for an authentication module for use by a CommanderHttpClient
instance.
Method Summary | |
---|---|
boolean |
authenticate(java.net.URL reqUrl,
org.apache.commons.httpclient.HttpClient client)
Authenticate the client http state so that the colony requests can be made. |
java.lang.String |
getUsername()
Gets the user login name used when instantiating the authenticator |
boolean |
needsReAuthentication(int resultCode,
org.apache.commons.httpclient.HttpMethod method)
Return true if the result from the get method indicates re-authentication is needed |
Method Detail |
---|
boolean authenticate(java.net.URL reqUrl, org.apache.commons.httpclient.HttpClient client) throws HttpClientException
reqUrl
- URL requested for colonyclient
- HttpClient instance
HttpClientException
java.lang.String getUsername()
boolean needsReAuthentication(int resultCode, org.apache.commons.httpclient.HttpMethod method)
resultCode
- result codemethod
- request
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |