Can be called as part of a security token validating sequence where it is necessary to validate that the signer of a security token and the issuer of a security token are as expected.
Assembly: System.IdentityModel.Tokens.ValidatingIssuerNameRegistry (in System.IdentityModel.Tokens.ValidatingIssuerNameRegistry.dll)
'Declaration Protected Overridable Function IsThumbprintValid ( _ thumbprint As String, _ issuer As String _ ) As Boolean
protected virtual bool IsThumbprintValid( string thumbprint, string issuer )
protected: virtual bool IsThumbprintValid( String^ thumbprint, String^ issuer )
abstract IsThumbprintValid : thumbprint:string * issuer:string -> bool override IsThumbprintValid : thumbprint:string * issuer:string -> bool
protected function IsThumbprintValid( thumbprint : String, issuer : String ) : boolean
string represententing the thumbprint. Normally this is case insensitive.
string represententing the issuer.
true if the pair is valid, false otherwise
Any IssuingAuthority in [IssuingAuthorities] that contains both the thumbprint in [Thumbprints] and issuer in [Issuers] will be considered a valid pair.
This method returns when the first valid pair is found.
If you choose to override this method please be aware of the need to use the appropriate case when comparing keys. X509Thumbprints are case insensitive. Comparing keys using as case sensitive could lead to security issues.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.