Get ApiTicket token cache key.

@return string
516465
public function getTicketCacheKey()
    {
        if (is_null($this->ticketCacheKey)) {
            return $this->ticketCachePrefix.$this->getAccessToken()->getFingerprint();
        }

        return $this->ticketCacheKey;
    }
5701
public function getSignature()
    {
        /** @var int $timestamp */
        $timestamp = $this->getTimeStamp();
        $nonceStr  = $this->getnonceStr();
        $ticket    = $this->getTicket();

        $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";

        $url = "$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

        /** @var array $signature_array */
        $signature_array              = [];
        $signature_array['appId']     = $this->getAppId();
        $signature_array['nonceStr']  = $nonceStr;
        $signature_array['timestamp'] = $timestamp;
        $signature_array['signature'] = $this->getSignatures($ticket, $nonceStr, $timestamp, $url);

        return $signature_array;
    }
719686
private function getToken()
    {
        $vars = array(
            'method' => 'auth.getToken',
            'api_key' => $this->apiKey
        );

        $sig = $this->apiSig($this->apiSecret, $vars);
        $vars['api_sig'] = $sig;

        if ($call = $this->apiGetCall($vars)) {
            $this->token = $call->token;
        } else {
            return false;
        }
    }
976583
public function getCacheKey()
    {
        // Return Key.
        return 'PersonalityInsights-'.Uuid::uuid5(Uuid::NAMESPACE_DNS,
                                                  collect(['contentItems' => $this->toArray()])->toJson())->toString();
    }
685738
public function getAndStoreToken()
    {
        $token = $this->generateToken(6);
        
        $this->setAttribute('secure_token', sha1($token));
        $this->setAttribute('secure_token_timestamp', time());
        $this->update(false);

        return $token;
    }
724744
protected function key()
    {
        $key = rawurlencode($this->clientCredentials->getSecret()).'&';

        if ($this->credentials !== null) {
            $key .= rawurlencode($this->credentials->getSecret());
        }

        return $key;
    }
1075254
protected function getCacheKey()
    {
        $target = $this->getSourceObject();
        if (!isset(self::$cacheKeyCache[$target])) {
            self::$cacheKeyCache[$target] = DataList::create($target)->max('LastEdited');
        }
        return self::$cacheKeyCache[$target];
    }
1124637
public function getCacheKey()
    {
        if (is_null($this->cacheKey)) {
            return $this->cachePrefix . $this->getUserName();
        }

        return $this->cacheKey;
    }
647156
public function getToken($forceRefresh = false)
    {
        $cacheKey = $this->cacheKey;

        $cached = $this->cache->get($cacheKey);

        if ($forceRefresh || !$cached) {
            $token = $this->getTokenFromServer();

            $this->cache->set($cacheKey, $token['access_token'], $token['expires_in'] - 800);

            return $token['access_token'];
        }

        return $cached;
    }
1344971
public function getValue() {
		$files = $this->cache->load($this->getTokenizedCacheName($this->token));
		
		return $files;
	}
557283
protected function getUserByToken()
    {
        // Look up in cache and return if found
        if ($user = cache_get('api.userToken', $this->getCacheParams())) {
            return $user;
        }

        // Look up in database
        $user = $this->generateQuery()->first();

        // Add to cache
       if ($user) {
           cache_put('api.userToken', $this->getCacheParams(), $user);
       }

        return $user;
    }
686003
private function getCacheKey()
    {
        if ($this->requestBag->getClassData()['cacheKeyInterface']) {
            $cacheKey = $this->requestBag->getClassInstance()->getCacheKey();
        } else {
            $url = $this->httpRequest()->getCurrentUrl(true);
            $cacheKey = 'path-' . $url->getPath();
            $cacheKey .= 'query-' . $this->serialize($url->getQuery());
            $cacheKey .= 'method-' . $this->httpRequest()->getRequestMethod();
            $cacheKey .= 'post-' . $this->serialize($this->httpRequest()->getPost()->getAll());
            $cacheKey .= 'payload-' . $this->serialize($this->httpRequest()->getPayload()->getAll());
            $cacheKey .= 'version-' . $this->requestBag->getClassData()['version'];
            $cacheKey = md5($cacheKey);
        }

        return $cacheKey;
    }
1080573
public function key(): string
    {
        if ($this->cacheEntriesIterator === null) {
            $this->rewind();
        }
        return $this->cacheEntriesIterator->key();
    }
350059
public function getToken() : string {
        if (($this->token === null) || ($this->token->isExpired())) {
            $jwtBuilder = new Builder();
            $jwtBuilder->set('iss', $this->handlerPublicKey);
            $jwtBuilder->set('sub', $this->credentialPublicKey);

            $this->token = $jwtBuilder
                ->sign(new Sha256(), $this->handlerPrivateKey)
                ->getToken();
        }

        return (string) $this->token;
    }
268829
public function getAccessToken() {
        if (!is_null($this->_cachedAccessToken) &&
            $this->_cachedAccessToken->isValid()) {
            return $this->_cachedAccessToken;
        }

        $this->_cachedAccessToken = $this->acquireAccessToken();
        return $this->_cachedAccessToken;
    }
663628
public function getCachedToken()
    {
        if ($this->cachedToken) {
            return $this->cachedToken;
        }

        $key = md5($this->jwt->parser()->parseToken());
        $this->cachedToken = Cache::get($key);

        return $this->cachedToken;
    }
382756
public static function getCombinerCacheKey()
    {
        $theme = CmsTheme::getActiveTheme();
        if (!$theme->hasCustomData()) {
            return '';
        }

        $customData = $theme->getCustomData();

        return (string) $customData->updated_at ?: '';
    }