<PackageReference Include="Microsoft.IdentityModel.Logging" Version="8.14.0" />

Microsoft.IdentityModel.Logging.SecurityArtifact

An internal structure that is used to mark an argument as SecurityArtifact. Arguments wrapped with a SecurityArtifact structure will be considered as a SecurityArtifact in the message logging process.
public SecurityArtifact(object argument, Func<object, string> toStringCallback)

Creates an instance of SecurityArtifact that wraps the argument.

public SecurityArtifact(object argument, Func<object, string> toStringCallback, Func<object, string> toStringCallbackUnsafe)

Creates an instance of SecurityArtifact that wraps the argument.

public static string UnknownSafeTokenCallback(object _)

A dummy callback which can be leveraged to return a standard scrubbed token in the case where expected token is unknown.

public string UnsafeToString()