WSTrustSerializationContext 构造函数

定义

初始化 WSTrustSerializationContext 类的新实例。

重载

WSTrustSerializationContext()

初始化 WSTrustSerializationContext 类的新实例。

WSTrustSerializationContext(SecurityTokenHandlerCollectionManager)

使用指定的 SecurityTokenHandlerCollectionManager 对象初始化 WSTrustSerializationContext 类的新实例。

WSTrustSerializationContext(SecurityTokenHandlerCollectionManager, SecurityTokenResolver, SecurityTokenResolver)

使用指定的 WSTrustSerializationContext 对象、SecurityTokenHandlerCollectionManagerSecurityTokenResolver 初始化 SecurityTokenResolver 类的新实例。

WSTrustSerializationContext()

初始化 WSTrustSerializationContext 类的新实例。

public:
 WSTrustSerializationContext();
public WSTrustSerializationContext ();
Public Sub New ()

适用于

WSTrustSerializationContext(SecurityTokenHandlerCollectionManager)

使用指定的 SecurityTokenHandlerCollectionManager 对象初始化 WSTrustSerializationContext 类的新实例。

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 对象包含用来序列化和验证在 WS-Trust 信息中找到的令牌的 SecurityTokenHandler 对象集。

例外

securityTokenHandlerCollectionManagernull

适用于

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 对象包含用来序列化和验证在 WS-Trust 信息中找到的令牌的 SecurityTokenHandler 对象集。

securityTokenResolver
SecurityTokenResolver

用来解析在大部分 WS-Trust 消息的元素中找到的安全令牌引用的 SecurityTokenResolver 对象。

useKeyTokenResolver
SecurityTokenResolver

用来解析在 RST 消息中的 wst:UseKey 元素和 wst:RenewTarget 元素 安全令牌引用的 SecurityTokenResolver 对象。

例外

securityTokenHandlerCollectionManagernull

securityTokenResolvernull

useKeyTokenResolvernull

适用于