PHP 클래스 yii\authclient\OAuthToken

부터: 2.0
저자: Paul Klimov ([email protected])
상속: extends yii\base\Object
파일 보기 프로젝트 열기: yiisoft/yii2-authclient 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$createTimestamp object creation timestamp.
$tokenParamKey key in [[params]] array, which stores token key.
$tokenSecretParamKey key in [[params]] array, which stores token secret key.

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
defaultExpireDurationParamKey ( ) : string Fetches default expire duration param key.

메소드 상세

defaultExpireDurationParamKey() 보호된 메소드

Fetches default expire duration param key.
protected defaultExpireDurationParamKey ( ) : string
리턴 string expire duration param key.

getExpireDuration() 공개 메소드

Returns the token expiration duration.
public getExpireDuration ( ) : integer
리턴 integer token expiration duration.

getExpireDurationParamKey() 공개 메소드

public getExpireDurationParamKey ( ) : string
리턴 string expire duration param key.

getIsExpired() 공개 메소드

Checks if token has expired.
public getIsExpired ( ) : boolean
리턴 boolean is token expired.

getIsValid() 공개 메소드

Checks if token is valid.
public getIsValid ( ) : boolean
리턴 boolean is token valid.

getParam() 공개 메소드

Returns param by name.
public getParam ( string $name ) : mixed
$name string param name.
리턴 mixed param value.

getParams() 공개 메소드

public getParams ( ) : array
리턴 array

getToken() 공개 메소드

Returns token value.
public getToken ( ) : string
리턴 string token value.

getTokenSecret() 공개 메소드

Returns the token secret value.
public getTokenSecret ( ) : string
리턴 string token secret value.

init() 공개 메소드

public init ( )

setExpireDuration() 공개 메소드

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

setExpireDurationParamKey() 공개 메소드

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

setParam() 공개 메소드

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

setParams() 공개 메소드

public setParams ( array $params )
$params array

setToken() 공개 메소드

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

setTokenSecret() 공개 메소드

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

프로퍼티 상세

$createTimestamp 공개적으로 프로퍼티

object creation timestamp.
public $createTimestamp

$tokenParamKey 공개적으로 프로퍼티

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

$tokenSecretParamKey 공개적으로 프로퍼티

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