Enabling a Listener for HTTP(s) Support with Basic AuthChallenge

When a client attempts to connect to a host (like a relay server), this connection is authenticated with a basic authentication challenge.To setup a basic authentication, the application registers a listener with OData SDK. If the IODPHTTPAuthChallengeListener is not registered, an HTTP_AUTH_FAILURE error is returned when a challenge is received.

Syntax

public static void setODPHTTPAuthChallengeListener(ODPClientListeners.IODPHTTPAuthChallengeListener listener) throws MessagingClientException;

Parameters

Examples