EMS.ResourceAPI.TEMSEndpointAuthorization

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTEMSEndpointAuthorization

Delphi

TEMSEndpointAuthorization = class

C++

class PASCALIMPLEMENTATION TEMSEndpointAuthorization : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
EMS.ResourceAPI.pas
EMS.ResourceAPI.hpp
EMS.ResourceAPI EMS.ResourceAPI

Description

Provides methods to determine whether or not the RAD Server Engine (EMS Server) authorizes a request context.

TEMSEndpointAuthorization is a singleton. To obtain an instance of TEMSEndpointAuthorization, read its Instance class property.

TEMSEndpointAuthorization provides the following methods:

  • FindACL, to obtain an access control list for a given resource or endpoint.
  • Authorize, to determine whether or not a given access control list authorizes a given request context.

A subclass of TEMSEndpointAuthorization must assign to the TEMSEndpointAuthorization.FEndpointAuthorizationFactory class property a function which returns an instance of that subclass. If you read the Instance property for the first time before the value of TEMSEndpointAuthorization.FEndpointAuthorizationFactory is defined, Instance raises an EEMSError exception with the following message:

No endpoint implementation found

See Also