public class SamlFailedAuthCallback extends Object implements IFailedAuthCallback
Constructor and Description |
---|
SamlFailedAuthCallback() |
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)
Implementation of
IFailedAuthCallback that handles a failed auth exception. |
public AuthCredentials onFailedAuth(AuthCredentials failedAuthCred, String serviceEndpoint, Throwable throwable)
IFailedAuthCallback
that handles a failed auth exception. Determine if the
web service failed due to an expired artifact and SAML is enabled, if so, supply a new valid SAML artifactonFailedAuth
in interface IFailedAuthCallback
failedAuthCred
- the AuthCredentials used in the previous failed authentication attemptserviceEndpoint
- the service endpoint as Stringthrowable
- the exception thrown by the WsClient connection attemptpublic boolean allowRetries()
IFailedAuthCallback
allowRetries
in interface IFailedAuthCallback