mirror of
https://gh.wpcy.net/https://github.com/pixelabs-wp/whitelabel-plugins-update-server.git
synced 2026-04-18 04:02:15 +08:00
23 lines
423 B
PHP
23 lines
423 B
PHP
<?php
|
|
namespace Aws\Token;
|
|
|
|
/**
|
|
* Provides access to an AWS token used for accessing AWS services
|
|
*
|
|
*/
|
|
interface RefreshableTokenProviderInterface
|
|
{
|
|
/**
|
|
* Attempts to refresh this token object
|
|
*
|
|
* @return Token | Exception
|
|
*/
|
|
public function refresh();
|
|
|
|
/**
|
|
* Check if a refresh should be attempted
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function shouldAttemptRefresh();
|
|
}
|