wcf icon indicating copy to clipboard operation
wcf copied to clipboard

System.ServiceModel.Primitives reference assembly is missing SymmetricSecurityKey.GetKeyedHashAlgorithm(string) method

Open vgriph opened this issue 2 years ago • 1 comments

Describe the bug When trying to use the GetKeyedHashAlgorithm on the System.IdentityModel.Tokens.SymmetricSecurityKey class, the IDE and compiler says that the method is missing.

Investigating the issue I noticed that the method exists in the source code and in the lib file in the nuget package, but is missing from the ref dll in the nuget package.

To Reproduce Steps to reproduce the behavior:

  1. Create a new project
  2. Add a package reference to <PackageReference Include="System.ServiceModel.Primitives" Version="6.0.0" />
  3. Try to call GetKeyedHashAlgorithm(string)

Expected behavior It should be possible to invoke the method. (Or it should not be in the API documentation)

vgriph avatar Aug 23 '23 15:08 vgriph

SymmetricSecurityKey is used when using full Message security (message encrypted at the SOAP message level) which isn't currently supported. Can you provide some context on what you need this for?

mconnew avatar Aug 23 '23 23:08 mconnew