public function createTotp($identifier, $issuer = null)
    {
        $totp = $this->createEmptyTotp();
        $totp->setIdentifier($identifier);
        if (null !== $issuer) {
            $totp->setIssuer($issuer);
        }

        return $totp;
    }