PHP Class yii\authclient\OAuthToken

Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\base\Object
Afficher le fichier Open project: yiisoft/yii2-authclient Class Usage Examples

Méthodes publiques

Свойство Type Description
$createTimestamp object creation timestamp.
$tokenParamKey key in [[params]] array, which stores token key.
$tokenSecretParamKey key in [[params]] array, which stores token secret key.

Méthodes publiques

Méthode Description
getExpireDuration ( ) : integer Returns the token expiration duration.
getExpireDurationParamKey ( ) : string
getIsExpired ( ) : boolean Checks if token has expired.
getIsValid ( ) : boolean Checks if token is valid.
getParam ( string $name ) : mixed Returns param by name.
getParams ( ) : array
getToken ( ) : string Returns token value.
getTokenSecret ( ) : string Returns the token secret value.
init ( )
setExpireDuration ( string $expireDuration ) Sets token expire duration.
setExpireDurationParamKey ( string $expireDurationParamKey )
setParam ( string $name, mixed $value ) Sets param by name.
setParams ( array $params )
setToken ( string $token ) Sets token value.
setTokenSecret ( string $tokenSecret ) Sets the token secret value.

Méthodes protégées

Méthode Description
defaultExpireDurationParamKey ( ) : string Fetches default expire duration param key.

Method Details

defaultExpireDurationParamKey() protected méthode

Fetches default expire duration param key.
protected defaultExpireDurationParamKey ( ) : string
Résultat string expire duration param key.

getExpireDuration() public méthode

Returns the token expiration duration.
public getExpireDuration ( ) : integer
Résultat integer token expiration duration.

getExpireDurationParamKey() public méthode

public getExpireDurationParamKey ( ) : string
Résultat string expire duration param key.

getIsExpired() public méthode

Checks if token has expired.
public getIsExpired ( ) : boolean
Résultat boolean is token expired.

getIsValid() public méthode

Checks if token is valid.
public getIsValid ( ) : boolean
Résultat boolean is token valid.

getParam() public méthode

Returns param by name.
public getParam ( string $name ) : mixed
$name string param name.
Résultat mixed param value.

getParams() public méthode

public getParams ( ) : array
Résultat array

getToken() public méthode

Returns token value.
public getToken ( ) : string
Résultat string token value.

getTokenSecret() public méthode

Returns the token secret value.
public getTokenSecret ( ) : string
Résultat string token secret value.

init() public méthode

public init ( )

setExpireDuration() public méthode

Sets token expire duration.
public setExpireDuration ( string $expireDuration )
$expireDuration string token expiration duration.

setExpireDurationParamKey() public méthode

public setExpireDurationParamKey ( string $expireDurationParamKey )
$expireDurationParamKey string expire duration param key.

setParam() public méthode

Sets param by name.
public setParam ( string $name, mixed $value )
$name string param name.
$value mixed param value,

setParams() public méthode

public setParams ( array $params )
$params array

setToken() public méthode

Sets token value.
public setToken ( string $token )
$token string token value.

setTokenSecret() public méthode

Sets the token secret value.
public setTokenSecret ( string $tokenSecret )
$tokenSecret string token secret.

Property Details

$createTimestamp public_oe property

object creation timestamp.
public $createTimestamp

$tokenParamKey public_oe property

key in [[params]] array, which stores token key.
public $tokenParamKey

$tokenSecretParamKey public_oe property

key in [[params]] array, which stores token secret key.
public $tokenSecretParamKey