|
static | fromString ($key, $token, $assertClaims=array()) |
|
static | fromCookie ($key, $cookieName, $assertClaims=array()) |
|
static | fromRequest ($key, $attributeName, $assertClaims=array()) |
|
static | fromHeader ($key, $assertClaims=array(), $headerName='Authorization') |
|
◆ fromCookie()
static fromCookie |
( |
|
$key, |
|
|
|
$cookieName, |
|
|
|
$assertClaims = array() |
|
) |
| |
|
static |
Validate and decode a JSON Web Token string from a cookie
- Paramètres
-
KeyAbstract | string | $key | the key to use to sign the token, or name of key to build |
string | $cookieName | name of cookie that sources the token |
array | \Traversable | $assertClaims | traversable set of claims, claim => value, to assert |
- Renvoie
- \stdClass|false payload as stdClass, or false if token was invalid
- Exceptions
-
◆ fromHeader()
static fromHeader |
( |
|
$key, |
|
|
|
$assertClaims = array() , |
|
|
|
$headerName = 'Authorization' |
|
) |
| |
|
static |
Validate and decode a JSON Web Token string from a header
- Paramètres
-
KeyAbstract | string | $key | the key to use to sign the token, or name of key to build |
array | \Traversable | $assertClaims | traversable set of claims, claim => value, to assert |
string | $headerName | name of header that sources the token |
- Renvoie
- \stdClass|false payload as stdClass, or false if token was invalid
- Exceptions
-
◆ fromRequest()
static fromRequest |
( |
|
$key, |
|
|
|
$attributeName, |
|
|
|
$assertClaims = array() |
|
) |
| |
|
static |
Validate and decode a JSON Web Token string from a request (i.e. POST body)
- Paramètres
-
KeyAbstract | string | $key | the key to use to sign the token, or name of key to build |
string | $attributeName | name of cookie that sources the token |
array | \Traversable | $assertClaims | traversable set of claims, claim => value, to assert |
- Renvoie
- \stdClass|false payload as stdClass, or false if token was invalid
- Exceptions
-
◆ fromString()
static fromString |
( |
|
$key, |
|
|
|
$token, |
|
|
|
$assertClaims = array() |
|
) |
| |
|
static |
Validate and decode a JSON Web Token string
- Paramètres
-
KeyAbstract | string | $key | the key to use to sign the token, or name of key to build |
string | $token | the token string to validate and decode |
array | \Traversable | $assertClaims | traversable set of claims, claim => value, to assert |
- Renvoie
- \stdClass|false payload as stdClass, or false if token was invalid
- Exceptions
-
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/libraries/vendor/xoops/xmf/src/Jwt/TokenReader.php