DnsEndpointIdentity 類別

定義

指定伺服器的 DNS 身分識別。Specifies the DNS identity of the server.

public ref class DnsEndpointIdentity : System::ServiceModel::EndpointIdentity
public class DnsEndpointIdentity : System.ServiceModel.EndpointIdentity
type DnsEndpointIdentity = class
    inherit EndpointIdentity
Public Class DnsEndpointIdentity
Inherits EndpointIdentity
繼承
DnsEndpointIdentity

備註

這個類別會指定伺服器的預期身分識別。This class specifies the expected identity of the server. 如果伺服器的憑證包含具有相同值的 DNS,則此身分識別適用于 X509 憑證驗證模式。This identity is valid for X509 Certificate authentication mode if the server's certificate contains a DNS with the same value. 如果 SPN 具有相同的值,則對於 Windows 驗證模式也是有效的。It is also valid for Windows authentication mode if the SPN has the same value. 在此情況下,針對 Windows 驗證模式指定 DnsEndpointIdentity "server1.microsoft.com" 的用戶端相當於指定 SpnEndpointIdentity "host/server1. microsoft .com"。In this case, a client specifying the DnsEndpointIdentity "server1.microsoft.com" for Windows authentication mode is equivalent to specifying the SpnEndpointIdentity "host/server1.microsoft.com" .

建構函式

DnsEndpointIdentity(Claim)

從宣告初始化 DnsEndpointIdentity 類別的新執行個體。Initializes a new instance of the DnsEndpointIdentity class from a claim.

DnsEndpointIdentity(String)

從 DNS 名稱初始化這個類別的新執行個體。Initializes a new instance of this class from a DNS name.

屬性

IdentityClaim

取得對應到身分識別的身分識別宣告。Gets the identity claim that corresponds to the identity.

(繼承來源 EndpointIdentity)

方法

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.

(繼承來源 EndpointIdentity)
GetHashCode()

針對身分識別目前的執行個體提供雜湊程式碼。Provides a hash code for the current instance of the identity.

(繼承來源 EndpointIdentity)
GetType()

Gets the Type of the current instance.Gets the Type of the current instance.

(繼承來源 Object)
Initialize(Claim)

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

(繼承來源 EndpointIdentity)
Initialize(Claim, IEqualityComparer<Claim>)

使用指定的宣告及介面來初始化 EndpointIdentity 並比較是否相等。Initializes an EndpointIdentity with the specified claim and an interface and compares equality.

(繼承來源 EndpointIdentity)
MemberwiseClone()

Creates a shallow copy of the current Object.Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回身分識別。Returns the identity.

(繼承來源 EndpointIdentity)

適用於