语言

IAuthorizeRemotingConnection.IsConnectingIdentityAuthorized(IIdentity) 方法

定义

获取一个布尔值,该值指示客户端的用户标识是否有权连接到当前通道。

public:
 bool IsConnectingIdentityAuthorized(System::Security::Principal::IIdentity ^ identity);
public bool IsConnectingIdentityAuthorized(System.Security.Principal.IIdentity identity);
abstract member IsConnectingIdentityAuthorized : System.Security.Principal.IIdentity -> bool
Public Function IsConnectingIdentityAuthorized (identity As IIdentity) As Boolean

参数

identity
IIdentity

表示 IIdentity 客户端的用户标识。

返回

true 如果已授权客户端的用户标识,则为否则,为 false.

注解

接口的 IAuthorizeRemotingConnection 实例传递给 TcpServerChannel(IDictionary, IServerChannelSinkProvider, IAuthorizeRemotingConnection)。 它为在 a TcpServerChannel. 上的所有传入连接提供单一授权点。 它允许在反序列化任何传入消息之前授权调用方,以尽量减少来自不受信任的源的安全威胁。

适用于