WSTrustChannelFactory 类

定义

生成通道(WSTrustChannel 对象)的工厂类,该通道用于与 WS-Trust 终结点进行通信。

public ref class WSTrustChannelFactory : System::ServiceModel::ChannelFactory<System::ServiceModel::Security::IWSTrustChannelContract ^>
[System.Runtime.InteropServices.ComVisible(false)]
public class WSTrustChannelFactory : System.ServiceModel.ChannelFactory<System.ServiceModel.Security.IWSTrustChannelContract>
[<System.Runtime.InteropServices.ComVisible(false)>]
type WSTrustChannelFactory = class
    inherit ChannelFactory<IWSTrustChannelContract>
Public Class WSTrustChannelFactory
Inherits ChannelFactory(Of IWSTrustChannelContract)
继承
属性

构造函数

WSTrustChannelFactory()

初始化 WSTrustChannelFactory 类的新实例。

WSTrustChannelFactory(Binding)

使用指定的绑定初始化 WSTrustChannelFactory 类的新实例。

WSTrustChannelFactory(Binding, EndpointAddress)

使用指定的绑定和终结点地址初始化 WSTrustChannelFactory 类的新实例。

WSTrustChannelFactory(Binding, String)

使用指定的绑定和远程地址初始化 WSTrustChannelFactory 类的新实例。

WSTrustChannelFactory(ServiceEndpoint)

使用指定的终结点初始化 WSTrustChannelFactory 类的新实例。

WSTrustChannelFactory(String)

使用指定的终结点配置名称初始化 WSTrustChannelFactory 类的新实例。

WSTrustChannelFactory(String, EndpointAddress)

初始化与指定终结点配置名称和终结点地址关联的 WSTrustChannelFactory 类的新实例。

属性

Credentials

获取客户端在通过由工厂产生的通道与服务终结点进行通信时使用的凭据。

(继承自 ChannelFactory)
DefaultCloseTimeout

获取为完成关闭操作提供的默认时间间隔。

(继承自 ChannelFactory)
DefaultOpenTimeout

获取为完成打开操作提供的默认时间间隔。

(继承自 ChannelFactory)
Endpoint

获取由工厂产生的通道所要连接的服务终结点。

(继承自 ChannelFactory)
IsDisposed

获取一个值,该值指示通信对象是否已被释放。

(继承自 CommunicationObject)
SecurityTokenHandlerCollectionManager

获取或设置 SecurityTokenHandlerCollectionManager,其中包含此工厂类创建的通道所使用的 SecurityTokenHandler 对象集,这些对象用于序列化和验证 WS-Trust 消息中找到的令牌。

SecurityTokenResolver

获取或设置用于解析在 Ws-Trust 消息的大多数元素中找到的安全令牌引用的 SecurityTokenResolver

State

获取指示通信对象当前状态的值。

(继承自 CommunicationObject)
ThisLock

获取在状态转换过程中保护类实例的相互排斥锁。

(继承自 CommunicationObject)
TrustVersion

获取或设置 WS-Trust 的版本,其中,此工厂创建的通道用于序列化消息。

UseKeyTokenResolver

获取或设置 SecurityTokenResolver,它用于解析在 RST 消息的 wst:UseKey 元素中找到的安全令牌引用,以及在 RST 消息中发现的 wst:RenewTarget 元素中找到的安全令牌引用。

WSTrustRequestSerializer

获取或设置用于序列化 wst:RequestSecurityToken 消息的 WSTrustRequestSerializer

WSTrustResponseSerializer

获取或设置用于序列化 wst:RequestSecurityTokensResponse 消息的 WSTrustResponseSerializer

方法

Abort()

使通信对象立即从其当前状态转换到正在关闭状态。

(继承自 CommunicationObject)
ApplyConfiguration(String)

使用由指定配置文件提供的行为和通道工厂服务终结点中的那些行为来初始化通道工厂。

(继承自 ChannelFactory)
BeginClose(AsyncCallback, Object)

开始一个异步操作以关闭通信对象。

(继承自 CommunicationObject)
BeginClose(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定超时内关闭通信对象。

(继承自 CommunicationObject)
BeginOpen(AsyncCallback, Object)

开始一个异步操作以打开通信对象。

(继承自 CommunicationObject)
BeginOpen(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定时间间隔内打开通信对象。

(继承自 CommunicationObject)
Close()

使通信对象从其当前状态转换到关闭状态。

(继承自 CommunicationObject)
Close(TimeSpan)

使通信对象在指定时间间隔内从当前状态转换到关闭状态。

(继承自 CommunicationObject)
CreateChannel()

创建到指定终结点地址的指定类型的通道。

(继承自 ChannelFactory<TChannel>)
CreateChannel(EndpointAddress)

创建用于将消息发送到特定终结点地址的服务的通道。

(继承自 ChannelFactory<TChannel>)
CreateChannel(EndpointAddress, Uri)

创建 WSTrustChannel 对象,该对象用于通过指定的传输地址将消息发送到位于特定终结点地址的服务。

CreateChannelWithActAsToken(SecurityToken)

创建用于将消息发送到有作为安全令牌行为的服务的通道。

(继承自 ChannelFactory<TChannel>)
CreateChannelWithActAsToken(SecurityToken, EndpointAddress)

创建一个通道,该通道用于将消息发送到位于特定终结点地址的、具有一个作为安全令牌的行为的服务。

(继承自 ChannelFactory<TChannel>)
CreateChannelWithActAsToken(SecurityToken, EndpointAddress, Uri)

创建一个通道,该通道用于通过指定的传输地址将消息发送到位于特定终结点地址的、具有一个作为安全令牌的行为的服务。

(继承自 ChannelFactory<TChannel>)
CreateChannelWithIssuedToken(SecurityToken)

创建用于将消息发送到含有已发布安全令牌的服务的通道。

(继承自 ChannelFactory<TChannel>)
CreateChannelWithIssuedToken(SecurityToken, EndpointAddress)

创建一个通道,该通道用于将消息发送到位于特定终结点地址的、具有一个已发布的安全令牌的服务。

(继承自 ChannelFactory<TChannel>)
CreateChannelWithIssuedToken(SecurityToken, EndpointAddress, Uri)

创建一个通道,该通道用于通过指定的传输地址将消息发送到位于特定终结点地址的、具有一个已发布的安全令牌的服务。

(继承自 ChannelFactory<TChannel>)
CreateChannelWithOnBehalfOfToken(SecurityToken)

创建用于将消息发送到有代表安全令牌行为的服务的通道。

(继承自 ChannelFactory<TChannel>)
CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress)

创建用于将消息发送到特定终结点地址的服务的通道,该服务有安全令牌。

(继承自 ChannelFactory<TChannel>)
CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress, Uri)

创建一个通道,该通道用于通过指定的传输地址将消息发送到位于特定终结点地址的、代表安全令牌的服务。

(继承自 ChannelFactory<TChannel>)
CreateDescription()

创建服务终结点的说明。

(继承自 ChannelFactory<TChannel>)
CreateFactory()

为工厂的当前终结点生成通道工厂。

(继承自 ChannelFactory)
CreateSerializationContext()

创建由工厂创建的通道使用的 WSTrustSerializationContext 对象。

CreateTrustChannel(IWSTrustChannelContract, TrustVersion, WSTrustSerializationContext, WSTrustRequestSerializer, WSTrustResponseSerializer)

使用反映此工厂的配置的参数创建 WSTrustChannel 对象。

EndClose(IAsyncResult)

完成一个异步操作以关闭通信对象。

(继承自 CommunicationObject)
EndOpen(IAsyncResult)

完成一个异步操作以打开通信对象。

(继承自 CommunicationObject)
EnsureOpened()

打开尚未打开的当前通道工厂。

(继承自 ChannelFactory)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
Fault()

使通信对象从其当前状态转换到出错状态。

(继承自 CommunicationObject)
GetCommunicationObjectType()

获取通信对象的类型。

(继承自 CommunicationObject)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetProperty<T>()

从通道堆栈的适当层返回所请求的类型化对象,如果不存在,则返回 null

(继承自 ChannelFactory)
GetType()

获取当前实例的 Type

(继承自 Object)
InitializeEndpoint(Binding, EndpointAddress)

使用指定的绑定和地址初始化通道工厂的服务终结点。

(继承自 ChannelFactory)
InitializeEndpoint(EndpointAddress)

生成通道(WSTrustChannel 对象)的工厂类,该通道用于与 WS-Trust 终结点进行通信。

(继承自 ChannelFactory)
InitializeEndpoint(ServiceEndpoint)

使用指定的终结点初始化通道工厂的服务终结点。

(继承自 ChannelFactory)
InitializeEndpoint(String, EndpointAddress)

使用指定的地址和配置初始化通道工厂的服务终结点。

(继承自 ChannelFactory)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
OnAbort()

终止当前通道工厂的内部通道工厂。

(继承自 ChannelFactory)
OnBeginClose(TimeSpan, AsyncCallback, Object)

对当前通道工厂(具有关联的状态对象)的内部通道工厂,开始一个异步关闭操作。

(继承自 ChannelFactory)
OnBeginOpen(TimeSpan, AsyncCallback, Object)

对当前通道工厂(具有关联的状态对象)的内部通道工厂,开始一个异步打开操作。

(继承自 ChannelFactory)
OnClose(TimeSpan)

使用完成操作的指定超时对内部通道工厂调用 close。

(继承自 ChannelFactory)
OnCloseAsync(TimeSpan)

生成通道(WSTrustChannel 对象)的工厂类,该通道用于与 WS-Trust 终结点进行通信。

(继承自 ChannelFactory)
OnClosed()

在通信对象转换到正在关闭状态的过程中被调用。

(继承自 CommunicationObject)
OnClosing()

在通信对象转换到正在关闭状态的过程中被调用。

(继承自 CommunicationObject)
OnEndClose(IAsyncResult)

对当前通道工厂的内部通道工厂,完成一个异步关闭操作。

(继承自 ChannelFactory)
OnEndOpen(IAsyncResult)

对当前通道工厂的内部通道工厂,完成一个异步打开操作。

(继承自 ChannelFactory)
OnFaulted()

在调用了同步错误操作,从而引起通信对象转换为出错状态的情况下,该方法插入对通信对象的处理。

(继承自 CommunicationObject)
OnOpen(TimeSpan)

使用完成操作的指定超时对当前通道工厂的内部通道工厂调用 open。

(继承自 ChannelFactory)
OnOpenAsync(TimeSpan)

生成通道(WSTrustChannel 对象)的工厂类,该通道用于与 WS-Trust 终结点进行通信。

(继承自 ChannelFactory)
OnOpened()

为通道工厂初始化 ClientCredentials 对象的一个只读副本。

(继承自 ChannelFactory)
OnOpening()

为当前的通道生成内部通道工厂。

(继承自 ChannelFactory)
Open()

使通信对象从已创建状态转换到已打开状态。

(继承自 CommunicationObject)
Open(TimeSpan)

使通信对象在指定时间间隔内从已创建状态转换到已打开状态。

(继承自 CommunicationObject)
ThrowIfDisposed()

如果通信对象已释放,则引发异常。

(继承自 CommunicationObject)
ThrowIfDisposedOrImmutable()

如果通信对象的 State 属性未设置为 Created 状态,则引发异常。

(继承自 CommunicationObject)
ThrowIfDisposedOrNotOpen()

如果通信对象未处于 Opened 状态,则引发异常。

(继承自 CommunicationObject)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

事件

Closed

当通信对象转换到已关闭状态时发生。

(继承自 CommunicationObject)
Closing

当通信对象转换到正在关闭状态时发生。

(继承自 CommunicationObject)
Faulted

在通信对象转换到出错状态时发生。

(继承自 CommunicationObject)
Opened

当通信对象转换到已打开状态时发生。

(继承自 CommunicationObject)
Opening

当通信对象转换到正在打开状态时发生。

(继承自 CommunicationObject)

显式接口实现

IDisposable.Dispose()

关闭当前的通道工厂。

(继承自 ChannelFactory)

适用于