public function injectSettings(array $settings): void
    {
        if (isset($settings['security']['authentication']['authenticationStrategy'])) {
            $authenticationStrategyName = $settings['security']['authentication']['authenticationStrategy'];
            switch ($authenticationStrategyName) {
                case 'allTokens':
                    $this->authenticationStrategy = Context::AUTHENTICATE_ALL_TOKENS;
                    break;
                case 'oneToken':
                    $this->authenticationStrategy = Context::AUTHENTICATE_ONE_TOKEN;
                    break;
                case 'atLeastOneToken':
                    $this->authenticationStrategy = Context::AUTHENTICATE_AT_LEAST_ONE_TOKEN;
                    break;
                case 'anyToken':
                    $this->authenticationStrategy = Context::AUTHENTICATE_ANY_TOKEN;
                    break;
                default:
                    throw new Exception('Invalid setting "' . $authenticationStrategyName . '" for security.authentication.authenticationStrategy', 1291043022);
            }
        }
    }
public function injectSettings(array $settings): void
    {
        if (isset($settings['security']['authentication']['authenticationStrategy'])) {
            $authenticationStrategyName = $settings['security']['authentication']['authenticationStrategy'];
            switch ($authenticationStrategyName) {
                case 'allTokens':
                    $this->authenticationStrategy = Context::AUTHENTICATE_ALL_TOKENS;
                    break;
                case 'oneToken':
                    $this->authenticationStrategy = Context::AUTHENTICATE_ONE_TOKEN;
                    break;
                case 'atLeastOneToken':
                    $this->authenticationStrategy = Context::AUTHENTICATE_AT_LEAST_ONE_TOKEN;
                    break;
                case 'anyToken':
                    $this->authenticationStrategy = Context::AUTHENTICATE_ANY_TOKEN;
                    break;
                default:
                    throw new Exception('Invalid setting "' . $authenticationStrategyName . '" for security.authentication.authenticationStrategy', 1291043022);
            }
        }
    }
public function injectSettings ( array $ settings ) : void { if ( isset ( $ settings [ 'security' ] [ 'authentication' ] [ 'authenticationStrategy' ] ) ) { $ authenticationStrategyName = $ settings [ 'security' ] [ 'authentication' ] [ 'authenticationStrategy' ] ; switch ( $ authenticationStrategyName ) { case 'allTokens' : $ this -> authenticationStrategy = Context :: AUTHENTICATE_ALL_TOKENS ; break ; case 'oneToken' : $ this -> authenticationStrategy = Context :: AUTHENTICATE_ONE_TOKEN ; break ; case 'atLeastOneToken' : $ this -> authenticationStrategy = Context :: AUTHENTICATE_AT_LEAST_ONE_TOKEN ; break ; case 'anyToken' : $ this -> authenticationStrategy = Context :: AUTHENTICATE_ANY_TOKEN ; break ; default : throw new Exception ( 'Invalid setting "' . $ authenticationStrategyName . '" for security.authentication.authenticationStrategy' , 1291043022 ) ; } } }
Inject the settings and does a fresh build of tokens based on the injected settings

@param array $settings The settings
@return void
@throws Exception
Inject the settings and does a fresh build of tokens based on the injected settings