|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFailedAuthCallback
Objects that implement this interface can be registered with WSClient and will be notified when a failed authentication exception is thrown. The IFailedAuthCallback implementation has the option of returning new AuthCredentials to retry with, or null to discontinue authentication and fail. The IFailedAuthCallback implemention is registered via WsClient.addFailedAuthCallback().
Method Summary | |
---|---|
boolean |
allowRetries()
When this callback provides new AuthCredentials to retry with, allow additional retries (and callbacks for alternate credentials if they fail again). |
AuthCredentials |
onFailedAuth(AuthCredentials failedAuthCred,
String serviceEndpoint,
Throwable throwable)
Callback method invoked by WsClient when an authentication failure occurs. |
Method Detail |
---|
AuthCredentials onFailedAuth(AuthCredentials failedAuthCred, String serviceEndpoint, Throwable throwable)
failedAuthCred
- the AuthCredentials used in the previous failed authentication attemptserviceEndpoint
- the service endpoint as Stringthrowable
- the exception thrown by the WsClient connection attempt
boolean allowRetries()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |