Neos\Flow\Security\Context::separateActiveAndInactiveTokens PHP Method

separateActiveAndInactiveTokens() protected method

Stores all active tokens in $this->activeTokens, all others in $this->inactiveTokens
protected separateActiveAndInactiveTokens ( ) : void
return void
    protected function separateActiveAndInactiveTokens()
    {
        if ($this->request === null) {
            return;
        }
        /** @var $token TokenInterface */
        foreach ($this->tokens as $token) {
            if ($this->isTokenActive($token)) {
                $this->activeTokens[$token->getAuthenticationProviderName()] = $token;
            } else {
                $this->inactiveTokens[$token->getAuthenticationProviderName()] = $token;
            }
        }
    }