You are here

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
JanrainCaptureApi.php in src/JanrainCaptureApi.php
JanrainCaptureApiInterface.php in src/JanrainCaptureApiInterface.php

File

src/Authentication/AccessToken.php, line 8

Namespace

Drupal\janrain_capture\Authentication
View 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

Namesort descending Modifiers Type Description Overrides
AccessToken::$refreshToken protected property The refresh token.
AccessToken::getRefreshToken public function
AccessToken::__construct public function Overrides Token::__construct
Token::$expiration protected property The expiration of a token.
Token::$expiresIn protected property The token's life in seconds.
Token::$token protected property The token itself.
Token::getExpiration public function 1
Token::getExpiresIn public function
Token::getToken public function
Token::isExpired public function
Token::setExpiration public function
Token::__toString public function