Service/DeveloperGarden/SecurityTokenServer/Cache.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- DeveloperGarden
- Version
- $Id$
\Zend_Service_DeveloperGarden_SecurityTokenServer_Cache
Package: Zend_Service\DeveloperGarden
- Author
- Marco Kaiser
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
\Zend_Cache_Core $_cache = null
static
Internal cache for token values
Default value
null
Details- Type
- \Zend_Cache_Core
- Access
- private
array $_storedToken = array('securityToken' => null, 'getTokens' => null)
static
array with stored tokens
Default value
array('securityToken' => null, 'getTokens' => null)
Details- Type
- array
Methods
getTokenFromCache(string $tokenId) : \Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Interface | null
static
returns stored token from cache or null
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$tokenId | string |
Type | Description |
---|---|
\Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Interface | null |
Exception | Description |
---|---|
\Zend_Service_DeveloperGarden_Exception |
setCache(\Zend_Cache_Core $cache) : void
static
Set a cache for token
Parameters
Name | Type | Description |
---|---|---|
$cache | \Zend_Cache_Core | A cache frontend |
setTokenToCache(string $tokenId, \Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Interface $tokenValue) : void
static
set new value for the given tokenId
Parameters
Throws
Name | Type | Description |
---|---|---|
$tokenId | string | |
$tokenValue | \Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Interface |
Exception | Description |
---|---|
\Zend_Service_DeveloperGarden_Exception |