Package com.webmethods.caf.wsclient.saml
Class SamlFailedAuthCallback
java.lang.Object
com.webmethods.caf.wsclient.saml.SamlFailedAuthCallback
- All Implemented Interfaces:
IFailedAuthCallback
Authentication failure callback listener for SAML
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
When this callback provides new AuthCredentials to retry with, allow additional retries (and callbacks for alternate credentials if they fail again).onFailedAuth
(AuthCredentials failedAuthCred, String serviceEndpoint, Throwable throwable) Implementation ofIFailedAuthCallback
that handles a failed auth exception.
-
Constructor Details
-
SamlFailedAuthCallback
public SamlFailedAuthCallback()
-
-
Method Details
-
onFailedAuth
public AuthCredentials onFailedAuth(AuthCredentials failedAuthCred, String serviceEndpoint, Throwable throwable) Implementation ofIFailedAuthCallback
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 artifact- Specified by:
onFailedAuth
in interfaceIFailedAuthCallback
- Parameters:
failedAuthCred
- the AuthCredentials used in the previous failed authentication attemptserviceEndpoint
- the service endpoint as Stringthrowable
- the exception thrown by the WsClient connection attempt- Returns:
- an alternate AuthCredentials to retry auth with, or null to discontinue the authentication process
-
allowRetries
public boolean allowRetries()Description copied from interface:IFailedAuthCallback
When this callback provides new AuthCredentials to retry with, allow additional retries (and callbacks for alternate credentials if they fail again).- Specified by:
allowRetries
in interfaceIFailedAuthCallback
- Returns:
- true to continue looping for credentials
-