Delivering token based authenticated media assets * * @api */ class AuthTokenConfig extends BaseConfigSection { const CONFIG_NAME = 'auth_token'; // Supported parameters const KEY = 'key'; const IP = 'ip'; const ACL = 'acl'; const START_TIME = 'start_time'; const EXPIRATION = 'expiration'; const DURATION = 'duration'; /** * (Required) – the token must be signed with the encryption key received from Cloudinary. * * @var string */ public $key; /** * (Optional) – only this IP address can access the resource. * * @var string */ public $ip; /** * (Optional) – an Access Control List for limiting the allowed URL path to a specified pattern (e.g., * /video/authenticated/*). * * The pattern can include any of Cloudinary's transformations to also apply to the * delivered assets. Note that if you add an overlay (e.g., for a watermark), you should also include the * fl_layer_apply flag to ensure the layer cannot be modified. This parameter is useful for generating a token * that can be added to a number of different URLs that share a common transformation. Without this parameter, * the pattern defaults to the full URL path of the requested asset. * * @var string|array */ public $acl; /** * (Optional) – timestamp of the UNIX time when the URL becomes valid. Default value: the current time. * * @var int */ public $startTime; /** * (Optional) – timestamp of the UNIX time when the URL expires. * * @var int */ public $expiration; /** * (Optional) – the duration that the URL is valid in seconds (counted from start_time). * * @var int */ public $duration; }