Lines Matching refs:service

54     public function retrieveAccessToken($service)
56 if (!$this->hasAccessToken($service)) {
60 if (isset($this->cachedTokens[$service])) {
61 return $this->cachedTokens[$service];
64 $val = $this->redis->hget($this->key, $service);
66 return $this->cachedTokens[$service] = unserialize($val);
72 public function storeAccessToken($service, TokenInterface $token)
75 $this->redis->hset($this->key, $service, serialize($token));
76 $this->cachedTokens[$service] = $token;
85 public function hasAccessToken($service)
87 if (isset($this->cachedTokens[$service])
88 && $this->cachedTokens[$service] instanceof TokenInterface
93 return $this->redis->hexists($this->key, $service);
99 public function clearToken($service)
101 $this->redis->hdel($this->key, $service);
102 unset($this->cachedTokens[$service]);
136 public function retrieveAuthorizationState($service)
138 if (!$this->hasAuthorizationState($service)) {
142 if (isset($this->cachedStates[$service])) {
143 return $this->cachedStates[$service];
146 $val = $this->redis->hget($this->stateKey, $service);
148 return $this->cachedStates[$service] = $val;
154 public function storeAuthorizationState($service, $state)
157 $this->redis->hset($this->stateKey, $service, $state);
158 $this->cachedStates[$service] = $state;
167 public function hasAuthorizationState($service)
169 if (isset($this->cachedStates[$service])
170 && null !== $this->cachedStates[$service]
175 return $this->redis->hexists($this->stateKey, $service);
181 public function clearAuthorizationState($service)
183 $this->redis->hdel($this->stateKey, $service);
184 unset($this->cachedStates[$service]);