public getAuthenticationTokensOfType ( string $className ) : Neos\Flow\Security\Authentication\TokenInterface[] | ||
$className | string | The class name |
return | Neos\Flow\Security\Authentication\TokenInterface[] | Array of set tokens of the specified type |
public function getAuthenticationTokensOfType($className)
{
$tokens = [];
foreach ($this->tokens as $token) {
if ($token instanceof $className) {
$tokens[] = $token;
}
}
return $tokens;
}