Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Elgg
Security
UrlSigner
PHP Class Elgg\Security\UrlSigner
Afficher le fichier
Open project: elgg/elgg
Méthodes publiques
Méthode
Description
isValid
(
string
$url
) :
boolean
Validates HMAC signature
sign
(
string
$url
,
string
$expires
= false ) :
string
Normalizes and signs the URL with SHA256 HMAC key
Method Details
isValid()
public
méthode
Validates HMAC signature
public
isValid
(
string
$url
) :
boolean
$url
string
URL to vlaidate
Résultat
boolean
sign()
public
méthode
Normalizes and signs the URL with SHA256 HMAC key
public
sign
(
string
$url
,
string
$expires
= false ) :
string
$url
string
URL to sign
$expires
string
Expiration time Accepts a string suitable for strtotime() Falsey values indicate non-expiring URL
Résultat
string