getCredentials(String, String, String) method

Retrieve the credentials on the connection failure.

Syntax

ODPHTTPAuthChallengeCredentials getCredentials ( String sHostName , String sUserName , String sRealm )

Parameters

Returns

ODPHTTPAuthChallengeCredentials structure

Examples

Usage

This method throws HTTP response code HTTP_AUTH_FAILURE - 401. The application is expected to return a structure from the method containing the credentials to be used. The argument contains the credentials last used, which will be empty strings on the first callback for the current run of the application (credentials are not persisted). Once credentials are received, they are used in subsequent connections until challenged again.