Export (0) Print
Expand All

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

.NET Framework 4.5

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

Namespace:  System.IdentityModel
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public EnvelopedSignatureReader(
	XmlReader reader,
	SecurityTokenSerializer securityTokenSerializer,
	SecurityTokenResolver signingTokenResolver,
	bool requireSignature,
	bool automaticallyReadSignature,
	bool resolveIntrinsicSigningKeys
)

Parameters

reader
Type: System.Xml.XmlReader

A reader that is pointing to the enveloped signed XML.

securityTokenSerializer
Type: System.IdentityModel.Selectors.SecurityTokenSerializer

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

signingTokenResolver
Type: System.IdentityModel.Selectors.SecurityTokenResolver

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

requireSignature
Type: System.Boolean

true if the signature is required; otherwise, false.

automaticallyReadSignature
Type: System.Boolean

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

resolveIntrinsicSigningKeys
Type: System.Boolean

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

ExceptionCondition
ArgumentNullException

reader is null.

-or-

securityTokenSerializer is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft