API:Datasnap.DSHTTPWebBroker.TDSHTTPResponseWebBroker.SetHeaderAuthentication

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetHeaderAuthentication(const Value: String; const Realm: String); override;

C++

virtual void __fastcall SetHeaderAuthentication(const System::UnicodeString Value, const System::UnicodeString Realm);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.DSHTTPWebBroker.pas
Datasnap.DSHTTPWebBroker.hpp
Datasnap.DSHTTPWebBroker TDSHTTPResponseWebBroker

Description

Sets the way WWW authentication takes place.

Datasnap.DSHTTPWebBroker.TDSHTTPResponseWebBroker.SetHeaderAuthentication inherits from Datasnap.DSHTTPCommon.TDSHTTPResponse.SetHeaderAuthentication. All content below this line refers to Datasnap.DSHTTPCommon.TDSHTTPResponse.SetHeaderAuthentication.

Sets the way WWW authentication takes place.

The SetHeaderAuthentication method sets the way WWW authentication takes place. The Value parameter specifies the authentication type (usually 'Basic') and the Realm parameter specifies the authentication realm (for example, 'REST').

The basic authentication scheme assumes that your credentials consist of a username and a password. The password is known only to you and the server. The realm is a description of the service (for example, 'REST') and is accessible only to the users that supply correct credentials to the server.