class RefreshTokenRepository in Simple OAuth (OAuth2) & OpenID Connect 8.4
Same name and namespace in other branches
- 8.2 src/Repositories/RefreshTokenRepository.php \Drupal\simple_oauth\Repositories\RefreshTokenRepository
- 8.3 src/Repositories/RefreshTokenRepository.php \Drupal\simple_oauth\Repositories\RefreshTokenRepository
- 5.x src/Repositories/RefreshTokenRepository.php \Drupal\simple_oauth\Repositories\RefreshTokenRepository
The refresh token repository.
Hierarchy
- class \Drupal\simple_oauth\Repositories\RefreshTokenRepository implements \League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface uses RevocableTokenRepositoryTrait
Expanded class hierarchy of RefreshTokenRepository
1 string reference to 'RefreshTokenRepository'
1 service uses RefreshTokenRepository
File
- src/
Repositories/ RefreshTokenRepository.php, line 11
Namespace
Drupal\simple_oauth\RepositoriesView source
class RefreshTokenRepository implements RefreshTokenRepositoryInterface {
use RevocableTokenRepositoryTrait;
/**
* The bundle ID.
*
* @var string
*/
protected static $bundleId = 'refresh_token';
/**
* The OAuth2 entity class name.
*
* @var string
*/
protected static $entityClass = 'Drupal\\simple_oauth\\Entities\\RefreshTokenEntity';
/**
* The OAuth2 entity interface name.
*
* @var string
*/
protected static $entityInterface = 'League\\OAuth2\\Server\\Entities\\RefreshTokenEntityInterface';
/**
* {@inheritdoc}
*/
public function getNewRefreshToken() {
return $this
->getNew();
}
/**
* {@inheritdoc}
*/
public function persistNewRefreshToken(RefreshTokenEntityInterface $refresh_token_entity) {
$this
->persistNew($refresh_token_entity);
}
/**
* {@inheritdoc}
*/
public function revokeRefreshToken($token_id) {
$this
->revoke($token_id);
}
/**
* {@inheritdoc}
*/
public function isRefreshTokenRevoked($token_id) {
return $this
->isRevoked($token_id);
}
}