EndpointIdentity 类

定义

一个抽象类,实现此类后可提供一个标识,与终结点交换消息的客户端可以使用该标识对终结点进行身份验证。An abstract class that when implemented provides an identity that enables the authentication of an endpoint by clients that exchange messages with it.

public ref class EndpointIdentity abstract
public ref class EndpointIdentity
public abstract class EndpointIdentity
public class EndpointIdentity
type EndpointIdentity = class
Public MustInherit Class EndpointIdentity
Public Class EndpointIdentity
继承
EndpointIdentity
派生

注解

可使用 EndpointAddress 的构造函数来设置终结点标识的值,在此构造函数中,该值可作为只读 Identity 属性进行访问。The value of the identity for an endpoint can be set with constructors of EndpointAddress, where its value can also be accessed as a read-only Identity property.

构造函数

EndpointIdentity()

创建一个空的 EndpointIdentity 实例。Creates an empty EndpointIdentity instance.

属性

IdentityClaim

获取对应于此标识的标识声明。Gets the identity claim that corresponds to the identity.

方法

CreateDnsIdentity(String)

使用指定的 DNS 名称创建 DNS 标识。Creates a DNS identity with a specified DNS name.

CreateIdentity(Claim)

使用指定的声明创建一个标识。Creates an identity with the specified claim.

CreateRsaIdentity(String)

使用指定的公钥创建一个 RSA 标识。Creates an RSA identity with the specified public key.

CreateRsaIdentity(X509Certificate2)

使用指定的 X.509 证书创建一个 RSA 标识。Creates an RSA identity with the specified X.509 certificate.

CreateSpnIdentity(String)

使用指定名称创建服务器主体名称 (SPN) 标识。Creates a server principal name (SPN) identity with a specified name.

CreateUpnIdentity(String)

使用指定名称创建用户主体名称 (UPN) 标识。Creates a user principal name (UPN) identity with a specified name.

CreateX509CertificateIdentity(X509Certificate2)

使用指定的证书创建一个 X509Certificate 标识。Creates an X509Certificate identity with the specified certificate.

CreateX509CertificateIdentity(X509Certificate2, X509Certificate2Collection)

使用指定的主要支持证书创建一个 X509Certificate 标识。Creates an X509Certificate identity with the specified primary and supporting certificates.

Equals(Object)

返回一个值,该值确定指定的对象是否与当前的标识对象相等,或者它们是否拥有相等的安全属性。Returns a value that determines whether a specified object is equal to the current identity object or if they have equal security properties.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

提供当前标识实例的哈希代码。Provides a hash code for the current instance of the identity.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Initialize(Claim)

使用指定的声明初始化 EndpointIdentityInitializes an EndpointIdentity with the specified claim.

Initialize(Claim, IEqualityComparer<Claim>)

使用指定的声明和接口初始化 EndpointIdentity 并对相等性进行比较。Initializes an EndpointIdentity with the specified claim and an interface and compares equality.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回标识。Returns the identity.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于