/**
  * Compares the credentials with a data transfer object
  *
  * @param AuthDTO $credentials
  *
  * @return boolean
  */
 public function compare(AuthDTO $credentials)
 {
     return $this->getUsername() === $credentials->getUsername() && $this->getPassword()->compare($credentials->getPassword());
 }