Wednesday, June 23, 2010

SPSecurity.SetApplicationCendentialKey !! wondering the typo error in SharePoint API

While digging in to the Microsoft.SharePoint.dll using Reflector for an impersonation related issue, discovered this method SPSecurity.SetApplicationCendentialKey. This method is used to encrypt and decrypt password strings but notice the typo error in a method name it is supposed to be SetApplicationCredentialKey. Microsoft marked this method as obsolete and provided a new method with out typo SPSecurity.SetApplicationCredentialKey.

Still wondering, how this method passed all Microsoft test cases before the release?

No comments: