Méthode | Description | |
---|---|---|
findIdentity ( string | integer $id ) : yii\web\IdentityInterface | Finds an identity by the given ID. | |
findIdentityByAccessToken ( mixed $token, mixed $type = null ) : yii\web\IdentityInterface | Finds an identity by the given token. | |
getAuthKey ( ) : string | Returns a key that can be used to check the validity of a given identity ID. | |
getId ( ) : string | integer | Returns an ID that can uniquely identify a user identity. | |
validateAuthKey ( string $authKey ) : boolean | Validates the given auth key. |
public static findIdentity ( string | integer $id ) : yii\web\IdentityInterface | ||
$id | string | integer | the ID to be looked for |
Résultat | yii\web\IdentityInterface | the identity object that matches the given ID. Null should be returned if such an identity cannot be found or the identity is not in an active state (disabled, deleted, etc.) |
public static findIdentityByAccessToken ( mixed $token, mixed $type = null ) : yii\web\IdentityInterface | ||
$token | mixed | the token to be looked for |
$type | mixed | the type of the token. The value of this parameter depends on the implementation. For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`. |
Résultat | yii\web\IdentityInterface | the identity object that matches the given token. Null should be returned if such an identity cannot be found or the identity is not in an active state (disabled, deleted, etc.) |
public getAuthKey ( ) : string | ||
Résultat | string | a key that is used to check the validity of a given identity ID. |
public validateAuthKey ( string $authKey ) : boolean | ||
$authKey | string | the given auth key |
Résultat | boolean | whether the given auth key is valid. |