PHP Class Jose\Object\DownloadedJWKSet

Inheritance: implements Jose\Object\JWKSetInterface, use trait BaseJWKSet, use trait JWKSetPEM
Datei anzeigen Open project: spomky-labs/jose

Public Methods

Method Description
__construct ( string $url, Psr\Cache\CacheItemPoolInterface $cache = null, integer $ttl = 86400, boolean $allow_unsecured_connection = false, boolean $allow_http_connection = false ) DownloadedJWKSet constructor.
addKey ( Jose\Object\JWKInterface $key )
removeKey ( $index )

Protected Methods

Method Description
getContent ( ) : string

Private Methods

Method Description
downloadContent ( ) : string

Method Details

__construct() public method

DownloadedJWKSet constructor.
public __construct ( string $url, Psr\Cache\CacheItemPoolInterface $cache = null, integer $ttl = 86400, boolean $allow_unsecured_connection = false, boolean $allow_http_connection = false )
$url string
$cache Psr\Cache\CacheItemPoolInterface
$ttl integer
$allow_unsecured_connection boolean
$allow_http_connection boolean

addKey() public method

public addKey ( Jose\Object\JWKInterface $key )
$key Jose\Object\JWKInterface

getContent() protected method

protected getContent ( ) : string
return string

removeKey() public method

public removeKey ( $index )