SamlSecurityTokenHandler.ResolveIssuerSigningKey Method

Definition

Returns a SecurityKey to use for validating the signature of a token.

protected virtual Microsoft.IdentityModel.Tokens.SecurityKey ResolveIssuerSigningKey (string token, Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken securityToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ResolveIssuerSigningKey : string * Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> Microsoft.IdentityModel.Tokens.SecurityKey
override this.ResolveIssuerSigningKey : string * Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> Microsoft.IdentityModel.Tokens.SecurityKey
Protected Overridable Function ResolveIssuerSigningKey (token As String, securityToken As SamlSecurityToken, validationParameters As TokenValidationParameters) As SecurityKey

Parameters

token
String

The String representation of the token that is being validated.

securityToken
SamlSecurityToken

The SamlSecurityToken that is being validated.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Returns

Returns a SecurityKey to use for signature validation.

Exceptions

Remarks

If key fails to resolve, then null is returned

Applies to