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
衍生

備註

端點的身分識別值可以用 EndpointAddressIdentity的建構函式設定,此時其值也可以當做唯讀的 {3} 屬性存取。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)

適用於