WSTrustSerializationContext 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 WSTrustSerializationContext 類別的新執行個體。
多載
WSTrustSerializationContext()
初始化 WSTrustSerializationContext 類別的新執行個體。
public:
WSTrustSerializationContext();
public WSTrustSerializationContext ();
Public Sub New ()
適用於
WSTrustSerializationContext(SecurityTokenHandlerCollectionManager)
使用指定的 WSTrustSerializationContext 物件,初始化 SecurityTokenHandlerCollectionManager 類別的新執行個體。
public:
WSTrustSerializationContext(System::IdentityModel::Tokens::SecurityTokenHandlerCollectionManager ^ securityTokenHandlerCollectionManager);
public WSTrustSerializationContext (System.IdentityModel.Tokens.SecurityTokenHandlerCollectionManager securityTokenHandlerCollectionManager);
new System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext : System.IdentityModel.Tokens.SecurityTokenHandlerCollectionManager -> System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext
Public Sub New (securityTokenHandlerCollectionManager As SecurityTokenHandlerCollectionManager)
參數
- securityTokenHandlerCollectionManager
- SecurityTokenHandlerCollectionManager
包含 SecurityTokenHandlerCollectionManager 物件集的 SecurityTokenHandler物件,用於序列化及驗證在 WS-Trust 訊息中找到的權杖。
例外狀況
securityTokenHandlerCollectionManager
為 null
。
適用於
WSTrustSerializationContext(SecurityTokenHandlerCollectionManager, SecurityTokenResolver, SecurityTokenResolver)
使用指定的 WSTrustSerializationContext、SecurityTokenHandlerCollectionManager 和 SecurityTokenResolver 物件,初始化 SecurityTokenResolver 類別的新執行個體。
public:
WSTrustSerializationContext(System::IdentityModel::Tokens::SecurityTokenHandlerCollectionManager ^ securityTokenHandlerCollectionManager, System::IdentityModel::Selectors::SecurityTokenResolver ^ securityTokenResolver, System::IdentityModel::Selectors::SecurityTokenResolver ^ useKeyTokenResolver);
public WSTrustSerializationContext (System.IdentityModel.Tokens.SecurityTokenHandlerCollectionManager securityTokenHandlerCollectionManager, System.IdentityModel.Selectors.SecurityTokenResolver securityTokenResolver, System.IdentityModel.Selectors.SecurityTokenResolver useKeyTokenResolver);
new System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext : System.IdentityModel.Tokens.SecurityTokenHandlerCollectionManager * System.IdentityModel.Selectors.SecurityTokenResolver * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext
Public Sub New (securityTokenHandlerCollectionManager As SecurityTokenHandlerCollectionManager, securityTokenResolver As SecurityTokenResolver, useKeyTokenResolver As SecurityTokenResolver)
參數
- securityTokenHandlerCollectionManager
- SecurityTokenHandlerCollectionManager
包含 SecurityTokenHandlerCollectionManager 物件集的 SecurityTokenHandler物件,用於序列化及驗證在 WS-Trust 訊息中找到的權杖。
- securityTokenResolver
- SecurityTokenResolver
SecurityTokenResolver 物件,會用來解析大多數 WS-Trust 訊息項目中找到的安全性權杖參考。
- useKeyTokenResolver
- SecurityTokenResolver
SecurityTokenResolver 物件,會用來解析 RST 訊息 wst:UseKey 項目中以及 RST 訊息 wst:RenewTarget 項目中找到的安全性權杖參考。
例外狀況
securityTokenHandlerCollectionManager
為 null
。
-或-
securityTokenResolver
為 null
。
-或-
useKeyTokenResolver
為 null
。