public function getNameId() { if ($this->encryptedNameId !== null) { throw new \Exception('Attempted to retrieve encrypted NameID without decrypting it first.'); } return $this->nameId; }