Service/DeveloperGarden/SecurityTokenServer/Cache.php

Show: PublicProtectedPrivateinherited
Table of Contents
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 [email protected] 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

>VPropertyprivate\Zend_Cache_Core $_cache = null
static
Internal cache for token values
Default valuenullDetails
Type
\Zend_Cache_Core
Access
private  
>VPropertyprotectedarray $_storedToken = array('securityToken' => null, 'getTokens' => null)
static
array with stored tokens
Default valuearray('securityToken' => null, 'getTokens' => null)Details
Type
array
>VPropertyprivateinteger $_wsdlCache = null
static
PHP SOAP wsdl cache constant
Default valuenullDetails
Type
integer

Methods

methodprotected__construct() : void

Constructor overriding - make sure that a developer cannot instantiate

methodpublicclearCache() : void
static

Clears all cache data

methodpublicgetCache() : \Zend_Cache_Core
static

Returns the cache

Returns
TypeDescription
\Zend_Cache_Core
methodpublicgetTokenFromCache(string $tokenId) : \Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Interface | null
static

returns stored token from cache or null

Parameters
NameTypeDescription
$tokenIdstring
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Interface | null
Throws
ExceptionDescription
\Zend_Service_DeveloperGarden_Exception
methodpublicgetWsdlCache() : integer
static

Returns the wsdl cache

Returns
TypeDescription
integer
methodpublichasCache() : boolean
static

Returns true when a cache is set

Returns
TypeDescription
boolean
methodpublicremoveCache() : void
static

Removes any cache

methodpublicresetTokenCache() : void
static

reset the internal cache structure

methodpublicsetCache(\Zend_Cache_Core $cache) : void
static

Set a cache for token

Parameters
NameTypeDescription
$cache\Zend_Cache_Core

A cache frontend

methodpublicsetTokenToCache(string $tokenId, \Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Interface $tokenValue) : void
static

set new value for the given tokenId

Parameters
NameTypeDescription
$tokenIdstring
$tokenValue\Zend_Service_DeveloperGarden_Response_SecurityTokenServer_Interface
Throws
ExceptionDescription
\Zend_Service_DeveloperGarden_Exception
methodpublicsetWsdlCache(integer $cache = null) : void
static

Set a cache for wsdl file

Parameters
NameTypeDescription
$cacheinteger
Documentation was generated by phpDocumentor 2.2.0 .