/**
  * @param PersonInterface $subject
  * @param ClientMetadata|null $metadata
  * @return string
  */
 public function getSubjectIdentifier(PersonInterface $subject, ClientMetadata $metadata = null)
 {
     $id = $subject->getId();
     if ($metadata === null || $metadata->getSubjectType() !== 'pairwise') {
         return $id;
     }
     if ($metadata->getSubjectType() === 'pairwise') {
         $sectorIdentifier = $metadata->getSectorIdentifier();
         $salt = $this->pairwiseSubjectIdSalt;
         $pairwise = hash('sha256', $sectorIdentifier . $id . $salt);
         return $pairwise;
     }
 }