1 // Copyright 2013 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 * @file ewk_auth_challenge.h
7 * @brief Describes the authentication challenge API.
10 #ifndef ewk_auth_challenge_h
11 #define ewk_auth_challenge_h
20 /** Creates a type name for _Ewk_Auth_Challenge */
21 typedef struct _Ewk_Auth_Challenge Ewk_Auth_Challenge;
24 * Gets the realm string of authentication challenge received from "authentication,challenge" evas object smart callback.
26 * @param auth_challenge authentication challenge instance received from "authentication,challenge" evas object smart callback.
27 * @return the realm of authentication challenge on success, @c 0 otherwise
30 EXPORT_API const char* ewk_auth_challenge_realm_get(Ewk_Auth_Challenge* auth_challenge);
33 * Gets the url string of authentication challenge received from "authentication,challenge" evas object smart callback.
35 * @param auth_challenge authentication challenge request instance received from "authentication,challenge" evas object smart callback.
36 * @return the url of authentication challenge on success, @c 0 otherwise
39 EXPORT_API const char* ewk_auth_challenge_url_get(Ewk_Auth_Challenge* auth_challenge);
42 * Suspend the operation for authentication challenge.
44 * @param auth_challenge authentication challenge instance received from "authentication,challenge" evas object smart callback.
47 EXPORT_API void ewk_auth_challenge_suspend(Ewk_Auth_Challenge* auth_challenge);
50 * If user select ok, send credential for authentication challenge from user input.
52 * @param auth_challenge authentication challenge instance received from "authentication,challenge" evas object smart callback.
53 * @param user user id from user input.
54 * @param password user password from user input.
57 EXPORT_API void ewk_auth_challenge_credential_use(Ewk_Auth_Challenge* auth_challenge, const char* user, const char* password);
60 * If user select cancel, send cancellation notification for authentication challenge.
62 * @param auth_challenge authentication challenge instance received from "authentication,challenge" evas object smart callback.
65 EXPORT_API void ewk_auth_challenge_credential_cancel(Ewk_Auth_Challenge* auth_challenge);
71 #endif // ewk_auth_challenge_h