RequestedSecurityToken Constructors

Definition

Initializes a new instance of the RequestedSecurityToken class.

Overloads

RequestedSecurityToken(SecurityToken)

Initializes a new instance of the RequestedSecurityToken class using the issued token.

RequestedSecurityToken(XmlElement)

Initializes a new instance of the RequestedSecurityToken class using the token XML.

RequestedSecurityToken(SecurityToken)

Initializes a new instance of the RequestedSecurityToken class using the issued token.

C#
public RequestedSecurityToken(System.IdentityModel.Tokens.SecurityToken token);

Parameters

token
SecurityToken

A SecurityToken that represents the requested security token.

Exceptions

token is null.

Remarks

This constructor is usually used by the token issuer.

The following table shows the properties of the new instance.

Property Value
SecurityToken The value of the token parameter.
SecurityTokenXml null.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

RequestedSecurityToken(XmlElement)

Initializes a new instance of the RequestedSecurityToken class using the token XML.

C#
public RequestedSecurityToken(System.Xml.XmlElement tokenAsXml);

Parameters

tokenAsXml
XmlElement

An XmlElement that contains the XML representation of the requested security token.

Exceptions

tokenAsXml is null.

Remarks

This constructor is usually used by the receiver.

The following table shows the properties of the new instance.

Property Value
SecurityToken null.
SecurityTokenXml The value of the tokenAsXml parameter.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1