class AccessToken in Janrain Registration 8
The access token.
Hierarchy
- class \Drupal\janrain_capture\Authentication\Token
- class \Drupal\janrain_capture\Authentication\AccessToken
Expanded class hierarchy of AccessToken
2 files declare their use of AccessToken
File
- src/
Authentication/ AccessToken.php, line 8
Namespace
Drupal\janrain_capture\AuthenticationView source
class AccessToken extends Token {
/**
* The refresh token.
*
* @var \Drupal\janrain_capture\Authentication\RefreshToken
*/
protected $refreshToken;
/**
* {@inheritdoc}
*/
public function __construct(string $token, int $expiration, RefreshToken $refresh_token) {
parent::__construct($token);
$this
->setExpiration($expiration);
$this->refreshToken = $refresh_token;
}
/**
* {@inheritdoc}
*/
public function getRefreshToken() : RefreshToken {
return $this->refreshToken;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessToken:: |
protected | property | The refresh token. | |
AccessToken:: |
public | function | ||
AccessToken:: |
public | function |
Overrides Token:: |
|
Token:: |
protected | property | The expiration of a token. | |
Token:: |
protected | property | The token's life in seconds. | |
Token:: |
protected | property | The token itself. | |
Token:: |
public | function | 1 | |
Token:: |
public | function | ||
Token:: |
public | function | ||
Token:: |
public | function | ||
Token:: |
public | function | ||
Token:: |
public | function |