Saml2SecurityTokenHandler.ValidateSubject Method

Definition

Validates the first SubjectConfirmationData

protected virtual void ValidateSubject (Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityToken samlToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ValidateSubject : Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
override this.ValidateSubject : Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
Protected Overridable Sub ValidateSubject (samlToken As Saml2SecurityToken, validationParameters As TokenValidationParameters)

Parameters

samlToken
Saml2SecurityToken

the Saml2 token that is being validated.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Exceptions

If validationParameters is null.

Applies to