开发者

Protected Configuration: useMachineContainer's default value?

In ASP.NET, when I'm using Protected Configuration, I'll specify something similar to the f开发者_开发问答ollowing in my web.config:

<configuration>
  <configProtectedData defaultProvider="SampleProvider">
    <providers>
      <add name="SampleProvider" 
        type="System.Configuration.RsaProtectedConfigurationProvider, 
              System.Configuration, Version=2.0.0.0, Culture=neutral, 
              PublicKeyToken=b03f5f7f11d50a3a,
             processorArchitecture=MSIL"
        keyContainerName="SampleKeys" 
        useMachineContainer="true" />
    </providers>
  </configProtectedData>
</configuration>

If I don't include it, what is the default value of the "useMachineContainer" attribute?


Referring to the Reference Source implementation for RsaProtectedConfigurationProvider, and DpapiProtectedConfigurationProvider the UseMachineContainer is initialised to a default value of 'true' (if no value is set in configuration)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜