protected function updateTokens(array $tokens)
    {
        $this->roles = null;
        $this->contextHash = null;

        if ($this->request === null) {
            return;
        }

        /** @var $token TokenInterface */
        foreach ($tokens as $token) {
            $token->updateCredentials($this->request);
        }

        $sessionDataContainer = $this->objectManager->get(SessionDataContainer::class);
        $sessionDataContainer->setSecurityTokens(array_merge($this->inactiveTokens, $this->activeTokens));
    }
protected function updateTokens(array $tokens)
    {
        $this->roles = null;
        $this->contextHash = null;

        if ($this->request === null) {
            return;
        }

        /** @var $token TokenInterface */
        foreach ($tokens as $token) {
            $token->updateCredentials($this->request);
        }

        $sessionDataContainer = $this->objectManager->get(SessionDataContainer::class);
        $sessionDataContainer->setSecurityTokens(array_merge($this->inactiveTokens, $this->activeTokens));
    }
protected function updateTokens ( array $ tokens ) { $ this -> roles = null ; $ this -> contextHash = null ; if ( $ this -> request === null ) { return ; } /** @var $token TokenInterface */ foreach ( $ tokens as $ token ) { $ token -> updateCredentials ( $ this -> request ) ; } $ sessionDataContainer = $ this -> objectManager -> get ( SessionDataContainer :: class ) ; $ sessionDataContainer -> setSecurityTokens ( array_merge ( $ this -> inactiveTokens , $ this -> activeTokens ) ) ; }
Updates the token credentials for all tokens in the given array.

@param array $tokens Array of authentication tokens the credentials should be updated for
@return void
Updates the token credentials for all tokens in the given array .