|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpAuthentication
This interface represents a generic mechanism used by the HttpTransportAgent to get authenticated. Various authentication mechanism can be implemented, and each one must implement this interface which is then used by the transport agent.
Method Summary | |
---|---|
boolean |
getRetryWithAuth()
Determines whether or not to retry sending a message, this time with authentication information. |
boolean |
handleAuthentication(HttpConnectionAdapter c)
Handle the authentication by adding authentication headers to the given HttpConnection. |
boolean |
processHttpError(HttpConnectionAdapter c)
Process any errors that the given HttpConnection has that are related to authentication. |
void |
setPassword(java.lang.String pass)
Set the password to the given string. |
void |
setUri(java.lang.String uri)
Set the authentication URI to the given string. |
void |
setUsername(java.lang.String user)
Set the username to the given string. |
Method Detail |
---|
boolean handleAuthentication(HttpConnectionAdapter c) throws java.io.IOException
c
- The HttpConnection to add authentication headers to.
java.io.IOException
boolean processHttpError(HttpConnectionAdapter c) throws java.io.IOException
c
- The HttpConnection to check for errors.
java.io.IOException
boolean getRetryWithAuth()
void setUsername(java.lang.String user)
user
- The new username.void setPassword(java.lang.String pass)
pass
- The new password.void setUri(java.lang.String uri)
uri
- The new uri.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |