com.webmethods.caf.wsclient.saml
Class SamlFailedAuthCallback

java.lang.Object
  extended by com.webmethods.caf.wsclient.saml.SamlFailedAuthCallback
All Implemented Interfaces:
IFailedAuthCallback

public class SamlFailedAuthCallback
extends Object
implements IFailedAuthCallback

Authentication failure callback listener for SAML


Constructor Summary
SamlFailedAuthCallback()
           
 
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)
          Implementation of IFailedAuthCallback that handles a failed auth exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamlFailedAuthCallback

public SamlFailedAuthCallback()
Method Detail

onFailedAuth

public AuthCredentials onFailedAuth(AuthCredentials failedAuthCred,
                                    String serviceEndpoint,
                                    Throwable throwable)
Implementation of 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 artifact

Specified by:
onFailedAuth in interface IFailedAuthCallback
Parameters:
failedAuthCred - the AuthCredentials used in the previous failed authentication attempt
serviceEndpoint - the service endpoint as String
throwable - 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 interface IFailedAuthCallback
Returns:
true to continue looping for credentials