Saml2SecurityTokenHandler.CreateSubject(SecurityTokenDescriptor) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a SAML2 subject of the assertion.
protected virtual Microsoft.IdentityModel.Tokens.Saml2.Saml2Subject CreateSubject (Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateSubject : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml2.Saml2Subject
override this.CreateSubject : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml2.Saml2Subject
Protected Overridable Function CreateSubject (tokenDescriptor As SecurityTokenDescriptor) As Saml2Subject
Parameters
- tokenDescriptor
- SecurityTokenDescriptor
The security token descriptor to create the subject.
Returns
A Saml2Subject.
Exceptions
Thrown when 'tokenDescriptor' is null.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for