EMS.ResourceAPI.TEMSEndpointAuthorization
| [–] Properties | |
|---|---|
| Type: class | |
| Visibility: public | |
| Source: EMS.ResourceAPI.pas EMS.ResourceAPI.hpp
| |
| Unit: EMS.ResourceAPI | |
| Parent: EMS.ResourceAPI | |
Delphi
TEMSEndpointAuthorization = class
C++
class PASCALIMPLEMENTATION TEMSEndpointAuthorization : public System::TObject
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