class AccessToken extends AbstractToken implements AccessTokenInterface

OAuth2 AccessToken for resource endpoint authentication.

Properties

protected $providerKey
protected $accessToken
protected $tokenType
protected $clientId
protected $username
protected $expires
protected $scope

Methods

__construct($providerKey, $accessToken, $tokenType = '', $clientId = '', $username = '', $expires = '', array $scope = [], array $roles = [])

No description

getId()

No description

setAccessToken(string $accessToken)

Set access_token.

string
getAccessToken()

Get access_token.

setTokenType(string $tokenType)

Set token_type.

string
getTokenType()

Get token_type.

setClientId(string $clientId)

Set client_id.

string
getClientId()

Get client_id.

setUsername(string $username)

Set username.

string
getUsername()

Get username.

setExpires(int $expires)

Set expires.

int
getExpires()

Get expires.

setScope(array $scope)

Set scope.

array
getScope()

Get scope.

getProviderKey()

No description

getCredentials()

No description

serialize()

No description

unserialize($str)

No description

Details

at line 31
__construct($providerKey, $accessToken, $tokenType = '', $clientId = '', $username = '', $expires = '', array $scope = [], array $roles = [])

Parameters

$providerKey
$accessToken
$tokenType
$clientId
$username
$expires
array $scope
array $roles

at line 55
getId()

at line 60
AccessToken setAccessToken(string $accessToken)

Set access_token.

Parameters

string $accessToken

Return Value

AccessToken

at line 67
string getAccessToken()

Get access_token.

Return Value

string

at line 72
AccessToken setTokenType(string $tokenType)

Set token_type.

Parameters

string $tokenType

Return Value

AccessToken

at line 79
string getTokenType()

Get token_type.

Return Value

string

at line 84
AccessToken setClientId(string $clientId)

Set client_id.

Parameters

string $clientId

Return Value

AccessToken

at line 91
string getClientId()

Get client_id.

Return Value

string

at line 96
AccessToken setUsername(string $username)

Set username.

Parameters

string $username

Return Value

AccessToken

at line 103
string getUsername()

Get username.

Return Value

string

at line 108
AccessToken setExpires(int $expires)

Set expires.

Parameters

int $expires

Return Value

AccessToken

at line 115
int getExpires()

Get expires.

Return Value

int

at line 120
AccessToken setScope(array $scope)

Set scope.

Parameters

array $scope

Return Value

AccessToken

at line 127
array getScope()

Get scope.

Return Value

array

at line 132
getProviderKey()

at line 137
getCredentials()

at line 142
serialize()

at line 156
unserialize($str)

Parameters

$str