EnvelopedSignatureReader 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 EnvelopedSignatureReader 類別的新執行個體。
多載
EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer) |
初始化 EnvelopedSignatureReader 類別的新執行個體。使用指定的讀取器和安全性權杖序列化程式。 |
EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver) |
使用指定的讀取器、安全性權杖序列化程式和權杖解析程式,初始化 EnvelopedSignatureReader 類別的新執行個體。 |
EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver, Boolean, Boolean, Boolean) |
使用指定的讀取器、安全性權杖序列化程式、權杖解析程式和行為,初始化 EnvelopedSignatureReader 類別的新執行個體。 |
EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer)
初始化 EnvelopedSignatureReader 類別的新執行個體。使用指定的讀取器和安全性權杖序列化程式。
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)
參數
- reader
- XmlReader
指向已包裹簽署之 XML 的讀取器。
- securityTokenSerializer
- SecurityTokenSerializer
要用來還原序列化簽章的KeyInfo的權杖序列化程式。
例外狀況
備註
建 EnvelopedSignatureReader.EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver, Boolean, Boolean, Boolean) 構函式會使用下列其他參數來叫用:
參數名稱 | 值 |
---|---|
signingTokenResolver |
null |
requireSignature |
true |
automaticallyReadSignature |
true |
resolveIntrinsicSigningKeys |
true |
適用於
EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver)
使用指定的讀取器、安全性權杖序列化程式和權杖解析程式,初始化 EnvelopedSignatureReader 類別的新執行個體。
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)
參數
- reader
- XmlReader
指向已包裹簽署之 XML 的讀取器。
- securityTokenSerializer
- SecurityTokenSerializer
要用來還原序列化簽章的KeyInfo的權杖序列化程式。
- signingTokenResolver
- SecurityTokenResolver
用來解析簽署的權杖的權杖解析程式。 null
指定應該使用預設的安全性權杖解析程式。
例外狀況
備註
建 EnvelopedSignatureReader.EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver, Boolean, Boolean, Boolean) 構函式會使用下列其他參數來叫用:
參數名稱 | 值 |
---|---|
requireSignature |
true |
automaticallyReadSignature |
true |
resolveIntrinsicSigningKeys |
true |
適用於
EnvelopedSignatureReader(XmlReader, SecurityTokenSerializer, SecurityTokenResolver, Boolean, Boolean, Boolean)
使用指定的讀取器、安全性權杖序列化程式、權杖解析程式和行為,初始化 EnvelopedSignatureReader 類別的新執行個體。
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)
參數
- reader
- XmlReader
指向已包裹簽署之 XML 的讀取器。
- securityTokenSerializer
- SecurityTokenSerializer
要用來還原序列化簽章的KeyInfo的權杖序列化程式。
- signingTokenResolver
- SecurityTokenResolver
用來解析簽署的權杖的權杖解析程式。 null
指定應該使用預設的安全性權杖解析程式。
- requireSignature
- Boolean
如果需要簽章,則為 true
,否則為 false
。
- automaticallyReadSignature
- Boolean
如果應該讀取簽章則為 true
,否則為 false
。
- resolveIntrinsicSigningKeys
- Boolean
如果應該解析內建的簽署金鑰,則為 true
,否則為false
。