Redigera

Dela via


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.

public:
 RequestedSecurityToken(System::IdentityModel::Tokens::SecurityToken ^ token);
public RequestedSecurityToken (System.IdentityModel.Tokens.SecurityToken token);
new System.IdentityModel.Protocols.WSTrust.RequestedSecurityToken : System.IdentityModel.Tokens.SecurityToken -> System.IdentityModel.Protocols.WSTrust.RequestedSecurityToken
Public Sub New (token As SecurityToken)

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

RequestedSecurityToken(XmlElement)

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

public:
 RequestedSecurityToken(System::Xml::XmlElement ^ tokenAsXml);
public RequestedSecurityToken (System.Xml.XmlElement tokenAsXml);
new System.IdentityModel.Protocols.WSTrust.RequestedSecurityToken : System.Xml.XmlElement -> System.IdentityModel.Protocols.WSTrust.RequestedSecurityToken
Public Sub New (tokenAsXml As XmlElement)

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