name; } /** * {@inheritdoc} */ public function setName($name) { $this->name = $name; } /** * {@inheritdoc} */ public function canKeepASecret() { return $this->secret !== null; } /** * {@inheritdoc} */ public function setSecret($secret) { $this->secret = password_hash($secret, PASSWORD_DEFAULT); } /** * {@inheritdoc} */ public function validateSecret($submittedSecret) { return strcmp((string) $submittedSecret, $this->secret) === 0; } /** * {@inheritdoc} */ public function setRedirectUri($redirectUri) { $this->redirectUri = $redirectUri; } /** * {@inheritdoc} */ public function getRedirectUri() { return $this->redirectUri; } /** * Get the hashed client secret * * @return string */ public function getSecret() { return $this->secret; } }