<PackageReference Include="System.ServiceModel.Primitives" Version="6.0.0" />

System.ServiceModel.Security.Tokens.BinarySecretSecurityToken

namespace System.ServiceModel.Security.Tokens { public class BinarySecretSecurityToken : SecurityToken { public int KeySize { get; } public BinarySecretSecurityToken(string id, byte[] key); public BinarySecretSecurityToken(byte[] key); protected BinarySecretSecurityToken(string id, int keySizeInBits, bool allowCrypto); protected BinarySecretSecurityToken(string id, byte[] key, bool allowCrypto); public byte[] GetKeyBytes(); } }