public interface IFailedAuthCallback
Modifier and Type | Method and Description |
---|---|
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.
|
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 attemptboolean allowRetries()