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

.NET Framework (current version)
 

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.

Exception Condition
ArgumentNullException

reader is null.

-or-

securityTokenSerializer is null.

.NET Framework
Available since 4.5
Return to top
Show: