Lines Matching refs:service
26 * The path to the file where tokens for this service and user are stored
28 * @param string $service
31 protected function getServiceFile($service)
33 return getCacheName($this->storageId . $service, '.oauth');
39 * @param string $service
42 protected function loadServiceFile($service)
44 $file = $this->getServiceFile($service);
55 * @param string $service
58 protected function saveServiceFile($service, $data)
60 $file = $this->getServiceFile($service);
65 public function retrieveAccessToken($service)
67 $data = $this->loadServiceFile($service);
75 public function storeAccessToken($service, TokenInterface $token)
77 $data = $this->loadServiceFile($service);
79 $this->saveServiceFile($service, $data);
83 public function hasAccessToken($service)
85 $data = $this->loadServiceFile($service);
90 public function clearToken($service)
92 $data = $this->loadServiceFile($service);
94 $this->saveServiceFile($service, $data);
107 public function storeAuthorizationState($service, $state)
109 $data = $this->loadServiceFile($service);
111 $this->saveServiceFile($service, $data);
116 public function hasAuthorizationState($service)
118 $data = $this->loadServiceFile($service);
126 public function retrieveAuthorizationState($service)
128 $data = $this->loadServiceFile($service);
136 public function clearAuthorizationState($service)
138 $data = $this->loadServiceFile($service);
140 $this->saveServiceFile($service, $data);