@@ -212,12 +212,12 @@ the ``PasswordDigest`` header value matches with the user's password::
212212 class WsseProvider implements AuthenticationProviderInterface
213213 {
214214 private $userProvider;
215- private $cacheDir ;
215+ private $cacheDirectory ;
216216
217- public function __construct(UserProviderInterface $userProvider, $cacheDir )
217+ public function __construct(UserProviderInterface $userProvider, $cacheDirectory )
218218 {
219- $this->userProvider = $userProvider;
220- $this->cacheDir = $cacheDir ;
219+ $this->userProvider = $userProvider;
220+ $this->cacheDirectory = $cacheDirectory ;
221221 }
222222
223223 public function authenticate(TokenInterface $token)
@@ -255,16 +255,16 @@ the ``PasswordDigest`` header value matches with the user's password::
255255 // Validate that the nonce is *not* used in the last 5 minutes
256256 // if it has, this could be a replay attack
257257 if (
258- file_exists($this->cacheDir .'/'.md5($nonce))
259- && file_get_contents($this->cacheDir .'/'.md5($nonce)) + 300 > time()
258+ file_exists($this->cacheDirectory .'/'.md5($nonce))
259+ && file_get_contents($this->cacheDirectory .'/'.md5($nonce)) + 300 > time()
260260 ) {
261261 throw new NonceExpiredException('Previously used nonce detected');
262262 }
263263 // If cache directory does not exist we create it
264- if (!is_dir($this->cacheDir )) {
265- mkdir($this->cacheDir , 0777, true);
264+ if (!is_dir($this->cacheDirectory )) {
265+ mkdir($this->cacheDirectory , 0777, true);
266266 }
267- file_put_contents($this->cacheDir .'/'.md5($nonce), time());
267+ file_put_contents($this->cacheDirectory .'/'.md5($nonce), time());
268268
269269 // Validate Secret
270270 $expected = base64_encode(sha1(base64_decode($nonce).$created.$secret, true));
0 commit comments