Editare

Partajați prin


EnvelopedSignatureReader Constructors

Definition

Initializes a new instance of the EnvelopedSignatureReader class.

Overloads

EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer)

Initializes a new instance of the EnvelopedSignatureReader class by using the specified reader and security token serializer.

EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver)

Initializes a new instance of the EnvelopedSignatureReader class by using the specified reader, security token serializer, and token resolver.

EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver, Boolean, Boolean, Boolean)

Initializes a new instance of the EnvelopedSignatureReader class by using the specified reader, security token serializer, token resolver, and behavior.

EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer)

Initializes a new instance of the EnvelopedSignatureReader class by using the specified reader and security token serializer.

public:
 EnvelopedSignatureReader(System::Xml::XmlReader ^ reader, System::IdentityModel::Selectors::SecurityTokenSerializer ^ securityTokenSerializer);
public EnvelopedSignatureReader (System.Xml.XmlReader reader, System.IdentityModel.Selectors.SecurityTokenSerializer securityTokenSerializer);
new System.IdentityModel.EnvelopedSignatureReader : System.Xml.XmlReader * System.IdentityModel.Selectors.SecurityTokenSerializer -> System.IdentityModel.EnvelopedSignatureReader
Public Sub New (reader As XmlReader, securityTokenSerializer As SecurityTokenSerializer)

Parameters

reader
XmlReader

A reader that is pointing to the enveloped signed XML.

securityTokenSerializer
SecurityTokenSerializer

The token serializer to be used to deserialize the KeyInfo of the signature.

Exceptions

reader is null.

-or-

securityTokenSerializer is null.

Remarks

The EnvelopedSignatureReader.EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver, Boolean, Boolean, Boolean) constructor is invoked with the following additional parameters:

Parameter Name Value
signingTokenResolver null
requireSignature true
automaticallyReadSignature true
resolveIntrinsicSigningKeys true

Applies to

EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver)

Initializes a new instance of the EnvelopedSignatureReader class by using the specified reader, security token serializer, and token resolver.

public:
 EnvelopedSignatureReader(System::Xml::XmlReader ^ reader, System::IdentityModel::Selectors::SecurityTokenSerializer ^ securityTokenSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ signingTokenResolver);
public EnvelopedSignatureReader (System.Xml.XmlReader reader, System.IdentityModel.Selectors.SecurityTokenSerializer securityTokenSerializer, System.IdentityModel.Selectors.SecurityTokenResolver signingTokenResolver);
new System.IdentityModel.EnvelopedSignatureReader : System.Xml.XmlReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.EnvelopedSignatureReader
Public Sub New (reader As XmlReader, securityTokenSerializer As SecurityTokenSerializer, signingTokenResolver As SecurityTokenResolver)

Parameters

reader
XmlReader

A reader that is pointing to the enveloped signed XML.

securityTokenSerializer
SecurityTokenSerializer

The token serializer to be used to deserialize the KeyInfo of the signature.

signingTokenResolver
SecurityTokenResolver

The token resolver to be used to resolve the signing token. null specifies that a default security token resolver should be used.

Exceptions

reader is null.

-or-

securityTokenSerializer is null.

Remarks

The EnvelopedSignatureReader.EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver, Boolean, Boolean, Boolean) constructor is invoked with the following additional parameters:

Parameter Name Value
requireSignature true
automaticallyReadSignature true
resolveIntrinsicSigningKeys true

Applies to

EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver, Boolean, Boolean, Boolean)

Initializes a new instance of the EnvelopedSignatureReader class by using the specified reader, security token serializer, token resolver, and behavior.

public:
 EnvelopedSignatureReader(System::Xml::XmlReader ^ reader, System::IdentityModel::Selectors::SecurityTokenSerializer ^ securityTokenSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ signingTokenResolver, bool requireSignature, bool automaticallyReadSignature, bool resolveIntrinsicSigningKeys);
public EnvelopedSignatureReader (System.Xml.XmlReader reader, System.IdentityModel.Selectors.SecurityTokenSerializer securityTokenSerializer, System.IdentityModel.Selectors.SecurityTokenResolver signingTokenResolver, bool requireSignature, bool automaticallyReadSignature, bool resolveIntrinsicSigningKeys);
new System.IdentityModel.EnvelopedSignatureReader : System.Xml.XmlReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver * bool * bool * bool -> System.IdentityModel.EnvelopedSignatureReader
Public Sub New (reader As XmlReader, securityTokenSerializer As SecurityTokenSerializer, signingTokenResolver As SecurityTokenResolver, requireSignature As Boolean, automaticallyReadSignature As Boolean, resolveIntrinsicSigningKeys As Boolean)

Parameters

reader
XmlReader

A reader that is pointing to the enveloped signed XML.

securityTokenSerializer
SecurityTokenSerializer

The token serializer to be used to deserialize the KeyInfo of the signature.

signingTokenResolver
SecurityTokenResolver

The token resolver to be used to resolve the signing token. null specifies that a default security token resolver should be used.

requireSignature
Boolean

true if the signature is required; otherwise, false.

automaticallyReadSignature
Boolean

true if the signature should be read; otherwise, false.

resolveIntrinsicSigningKeys
Boolean

true if intrinsic signing keys should be resolved; otherwise, false.

Exceptions

reader is null.

-or-

securityTokenSerializer is null.

Applies to