* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
*/
Tizen::Base::String* GetRealmN(void) const;
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
*/
NetHttpAuthScheme GetAuthScheme(void) const;
* @exception E_SYSTEM A system error has occurred.
* @exception E_AUTHENTICATION The authentication has failed.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks This method is used to set the username and password for the given domain and the authentication
* scheme on the reception of the IHttpTransactionEventListener::OnTransactionHeaderCompleted() callback.
* The specific error code can be accessed using the GetLastResult() method.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
*/
result RemoveCookies(const Tizen::Base::String& url);
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
*/
result RemoveAllCookies();
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
*/
result SetName(const Tizen::Base::String& name);
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
*/
result SetPassword(const Tizen::Base::String& password);
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
*/
Tizen::Base::String GetName(void) const;
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
*/
Tizen::Base::String GetPassword(void) const;
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
* @remarks The corresponding event listener must also be added in the same thread. A single transaction can be opened in a session at a time. After closing an open transaction, another
* transaction can be opened.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
* @remarks The corresponding event listener must also be added in the same thread. A single transaction at a time can be opened in a session. After closing an open transaction, another
* transaction can be opened.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The canceled transaction is no longer considered active. Also, re-opening the transaction is not allowed.
*/
result CancelTransaction(HttpTransaction& httpTransaction);
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
*/
result CloseTransaction(HttpTransaction& httpTransaction);
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
*/
result CloseAllTransactions(void);
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
* @remarks The transactions in the state between Submitted and Cancelled (or Closed) are considered to be active transactions.
*/
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
* @remarks In NET_HTTP_SESSION_MODE_MULTIPLE_HOST mode, the platform does not limit the number of maximum HttpTransaction that %HttpSession can have. @n
*/
* @exception E_UNKNOWN An unknown error has occurred.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The appropriate request header and body must be set using HttpRequest before using this method.
* If the session is in a non-pipeline mode, be sure not to submit a transaction before the previous transaction is completed.
* @see HttpHeader
* @exception E_INVALID_OPERATION The current state of the instance prohibits the execution of the specified operation.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
*/
HttpAuthentication* OpenAuthenticationInfoN(void);
* @exception E_INVALID_CONNECTION The network connection is invalid.
* @exception E_FAILURE The method has failed due to an undefined error.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The @c netConnection parameter specifies a run-time network connection. @n
* The @c addressFamily parameter specifies an address family. @n
* The @c socketType parameter specifies the type of the secure socket. SSL only supports stream-based protocols. @n
* @exception E_INVALID_CONNECTION The network connection is invalid.
* @exception E_FAILURE The method has failed due to an undefined error.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The @c addressFamily parameter specifies an address family. @n
* The @c socketType parameter specifies the type of the secure socket. SSL only supports stream-based protocols. @n
* The @c protocol parameter specifies the protocol used by the secure socket. The SSL protocol is defined as NET_SOCKET_PROTOCOL_SSL. @n
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks If the %SecureSocket class is not initialized through one of the Construct() methods or this method is called more than once,
* then this method returns E_INVALID_STATE.
*/
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
*
* @remarks Starts connection to a remote peer including SSL handshaking.
* After this method is called, ISecureSocketEventListener::OnSecureSocketConnected() is called. The data is sent to and received from the remote
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks Use this method if a specific local endpoint should be used.
* This method can be used on both the connectionless and connection-oriented protocols.
* For connection-oriented sockets, this method need not be called
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks This method causes a connection-oriented socket to listen for
* the incoming connection attempts. The @c backlog parameter specifies
* the number of incoming connections that can be queued for acceptance.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks Before calling this method, the Listen() method must be called first
* to listen for and queue the incoming connection requests.
* In the blocking mode, this method blocks until an incoming connection attempt
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks This method manipulates the underlying device parameters of the secure socket descriptors. @n@n
* The NET_SOCKET_FIONBIO option is used for setting the non-blocking/blocking mode on a secure socket.
* Set the value to zero for enabling the blocking mode, or to a non-zero value for enabling the non-blocking mode.
* @exception E_INVALID_CONNECTION The network connection is invalid.
* @exception E_FAILURE The method has failed.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The @c netConnection parameter specifies a run-time network connection. @n
* The @c addressFamily parameter specifies an address family. @n
* The @c socketType parameter specifies the type of the socket. @n
* @exception E_INVALID_CONNECTION The network connection is invalid.
* @exception E_FAILURE The method has failed.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The @c addressFamily parameter specifies an address family. @n
* The @c socketType parameter specifies the type of the socket. @n
* The @c protocol parameter specifies the protocol used by the socket. @n
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks If the %Socket class is not initialized through one of the Construct() methods, or this method is called more than once,
* then this method returns E_INVALID_STATE.
*/
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks If the socket is a connectionless socket (that is, of the type NET_SOCKET_TYPE_DATAGRAM), this method fails.
* After this method is called, ISocketEventListener::OnSocketConnected() is called. the data can be sent to and received from the remote device using Send() and Receive() respectively.
* If a connection-oriented protocol is used and Bind() is not called before calling this method, the underlying service provider
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks Use this method if a specific local endpoint should be used.
* This method can be used on both the connectionless and connection-oriented protocols.
* For connection-oriented sockets, this method need not be called
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks This method causes a connection-oriented socket to listen for
* the incoming connection attempts. The @c backlog parameter specifies
* the number of incoming connections that can be queued for acceptance.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks Before calling this method, the Listen() method must be called first
* to listen for and queue the incoming connection requests.
* In the blocking mode, this method blocks until an incoming connection attempt
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks This method manipulates the underlying device parameters of the socket descriptors. @n@n
* The NET_SOCKET_FIONBIO option is used for setting the non-blocking/blocking mode on a socket.
* Set the value to zero for enabling the blocking mode, or to a non-zero value for enabling the non-blocking mode.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks This method determines the status of one or more
* Socket instances. There must be at least one socket in an Tizen::Base::Collection::IList
* before this method is used.
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
String* pRealm = __pHttpAuthenticationImpl->GetRealmN();
if (IsFailed(r))
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, NET_HTTP_AUTH_NONE, r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, NET_HTTP_AUTH_NONE, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
NetHttpAuthScheme scheme = __pHttpAuthenticationImpl->GetAuthScheme();
r = GetLastResult();
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
HttpTransaction* pTransaction = __pHttpAuthenticationImpl->SetCredentials(credentials);
r = GetLastResult();
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysLog(NID_NET_HTTP, "url : %ls", url.GetPointer());
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pHttpCookieStorageManagerImpl->RemoveAllCookies();
SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "Propagating.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, L"", r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, L"", r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
return __userName;
}
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, L"", r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, L"", r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
return __password;
}
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysTryReturnResult(NID_NET_HTTP, userName.GetLength() > 0, E_INVALID_ARG,
"Failed to set user name of the credentials.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysTryReturnResult(NID_NET_HTTP, password.GetLength() > 0, E_INVALID_ARG,
"Failed to set password of the credentials.");
HttpTransaction* pHttpTransaction = null;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
pHttpTransaction = __pHttpSessionImpl->OpenTransactionN();
r = GetLastResult();
HttpTransaction* pHttpTransaction = null;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
pHttpTransaction = __pHttpSessionImpl->OpenTransactionN(auth);
r = GetLastResult();
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pHttpSessionImpl->CloseAllTransactions();
SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "Propagating.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pHttpSessionImpl->CancelTransaction(httpTransaction);
SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "Propagating.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pHttpSessionImpl->CloseTransaction(httpTransaction);
SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "Propagating.");
int activeTransactionCount = -1;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, -1, r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, -1, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
activeTransactionCount = __pHttpSessionImpl->GetActiveTransactionCount();
r = GetLastResult();
int maxTransactionCount = -1;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, -1, r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, -1, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
maxTransactionCount = __pHttpSessionImpl->GetMaxTransactionCount();
r = GetLastResult();
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pHttpTransactionImpl->Submit();
SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "Propagating.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_HTTP);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, null, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
HttpAuthentication* pHttpAuthentication = __pHttpTransactionImpl->OpenAuthenticationInfoN();
r = GetLastResult();
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pSecureSocketImpl == null,
"Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pSecureSocketImpl == null,
"Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pSecureSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pSecureSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pSecureSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pSecureSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
SecureSocket* pNewSocket = null;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, null, E_PRIVILEGE_DENIED,
- "[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, null, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
SysAssertf(__pSecureSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pSecureSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
Socket::Construct(const NetConnection& netConnection, NetSocketAddressFamily addressFamily, NetSocketType socketType,
NetSocketProtocol protocol)
{
- SysAssertf(__pSocketImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
+ SysAssertf(__pSocketImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
- result r = E_SUCCESS;
+ result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
unique_ptr<_SocketImpl> pSocketImpl(new (std::nothrow) _SocketImpl(this));
SysTryReturnResult(NID_NET_SOCK, pSocketImpl != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
result
Socket::Construct(NetSocketAddressFamily addressFamily, NetSocketType socketType, NetSocketProtocol protocol)
{
- SysAssertf(__pSocketImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
+ SysAssertf(__pSocketImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
unique_ptr<_SocketImpl> pSocketImpl(new (std::nothrow) _SocketImpl(this));
SysTryReturnResult(NID_NET_SOCK, pSocketImpl != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
result
Socket::Close(void)
{
- SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
+ SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pSocketImpl->Close();
SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "Propagating.");
result
Socket::Connect(const NetEndPoint& remoteEP)
{
- SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
+ SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
- result r = E_SUCCESS;
+ result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pSocketImpl->Connect(remoteEP);
SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "Propagating.");
result
Socket::Bind(const NetEndPoint& localEP)
{
- SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
+ SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pSocketImpl->Bind(localEP);
SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "Propagating.");
result
Socket::Listen(int backLog)
{
- SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
+ SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pSocketImpl->Listen(backLog);
SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "Propagating.");
Socket*
Socket::AcceptN(void) const
{
- SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
+ SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
ClearLastResult();
Socket* pNewSocket = null;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, null, E_PRIVILEGE_DENIED, "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturn(NID_NET_SOCK, r == E_SUCCESS, null, r, "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
pNewSocket = __pSocketImpl->AcceptN();
r = GetLastResult();
result
Socket::Ioctl(NetSocketIoctlCmd cmd, unsigned long& pArg) const
{
- SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
+ SysAssertf(__pSocketImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pSocketImpl->Ioctl(cmd, pArg);
SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "Propagating.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_SOCKET);
- SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_SOCK, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pSocketUtilityImpl != null, "Not yet constructed. Construct() should be called before use.");