setODPCertificateChallengeListener( IODPCertificateChallengeListener ) method

Set the IODPCertificateChallengeListener to receive certificate requests.

Syntax

void setODPCertificateChallengeListener ( IODPCertificateChallengeListener oListerner ) throws ODPException

Parameters

Exceptions

Examples

Usage

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 Unwired Server to use Relay Server" in SAP Control Center for SAP Mobile Platform for information on the configuration of relay server properties.