Enabling a Listener for HTTPS Support with Server Certificate Validation

When a client attempts to connect to a host (like a relay server), this connection is authenticated with a basic authentication challenge.To verify if the server certificate is trusted or not, the application registers a listener object with the OData SDK. If the server certificate is trusted, the connection is successful. If the server certificate is not trusted, it is rejected and the connection fails.

See Configuring SAP Mobile Server to use Relay Server in SAP Control Center for SAP Mobile Platform for information on the configuration of relay server properties.

Syntax

public void setODPCertificateChallengeListener(IODPCertificateChallengeListener oListener) throws ODPException;

Parameters

Examples