HttpClientCertificate 類別

定義

提供用戶端為回應伺服器的用戶端識別要求所發出的用戶端憑證欄位。Provides the client certificate fields issued by the client in response to the server's request for the client's identity.

public ref class HttpClientCertificate : System::Collections::Specialized::NameValueCollection
public class HttpClientCertificate : System.Collections.Specialized.NameValueCollection
type HttpClientCertificate = class
    inherit NameValueCollection
Public Class HttpClientCertificate
Inherits NameValueCollection
繼承

備註

如果網頁瀏覽器使用 SSL 3.0/PCT1 通訊協定 (URL 的開頭是 HTTPs://,而不是 HTTP://) 連接到伺服器,而伺服器需要用戶端憑證,則瀏覽器會傳送其數位憑證中包含的用戶端憑證欄位。If a Web browser uses the SSL3.0/PCT1 protocol (the URL begins with https:// instead of http://) to connect to a server and the server requires client certificates, the browser sends the client certificate fields contained in its digital certificate.

For more information about digital certificates, see the document X.509: Public-key and attribute certificate frameworks, available on the International Telecommunication Union (ITU) site at https://www.itu.int.For more information about digital certificates, see the document X.509: Public-key and attribute certificate frameworks, available on the International Telecommunication Union (ITU) site at https://www.itu.int.

屬性

AllKeys

取得 NameValueCollection 中的所有索引鍵。Gets all the keys in the NameValueCollection.

(繼承來源 NameValueCollection)
BinaryIssuer

以二進位格式,取得或設定憑證簽發者。Gets or sets the certificate issuer, in binary format.

CertEncoding

取得憑證的編碼方式。Gets the encoding of the certificate.

Certificate

以 ASN.1 格式,取得包含整個憑證內容的二進位資料流的字串。Gets a string containing the binary stream of the entire certificate content, in ASN.1 format.

Cookie

如果有提供,取得用戶端憑證的唯一 ID。Gets the unique ID for the client certificate, if provided.

Count

取得 NameObjectCollectionBase 執行個體中包含的索引鍵/值組數目。Gets the number of key/value pairs contained in the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
Flags

一組旗標,提供額外的用戶端憑證資訊。A set of flags that provide additional client certificate information.

IsPresent

取得值,指出用戶端憑證是否存在。Gets a value that indicates whether the client certificate is present.

IsReadOnly

取得或設定值,表示 NameObjectCollectionBase 執行個體是否為唯讀。Gets or sets a value indicating whether the NameObjectCollectionBase instance is read-only.

(繼承來源 NameObjectCollectionBase)
Issuer

包含子欄位值清單的字串,包含憑證簽發者的相關資訊。A string that contains a list of subfield values containing information about the certificate issuer.

IsValid

取得值,指出用戶端憑證是否有效。Gets a value that indicates whether the client certificate is valid.

Item[Int32]

取得 NameValueCollection 之指定索引處的項目。Gets the entry at the specified index of the NameValueCollection.

(繼承來源 NameValueCollection)
Item[String]

取得或設定具有 NameValueCollection 中指定索引鍵的項目。Gets or sets the entry with the specified key in the NameValueCollection.

(繼承來源 NameValueCollection)
Keys

取得 NameObjectCollectionBase.KeysCollection 執行個體,其中包含 NameObjectCollectionBase 執行個體內的所有索引鍵。Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
KeySize

取得數位憑證金鑰大小裡的位元數。Gets the number of bits in the digital certificate key size. 例如 128。For example, 128.

PublicKey

取得來自憑證的公開金鑰 (Public Key) 二進位值。Gets the public key binary value from the certificate.

SecretKeySize

取得伺服器憑證私密金鑰裡的位元數。Gets the number of bits in the server certificate private key. 例如,1024。For example, 1024.

SerialNumber

提供以短破折號分隔之十六進位位元組的 ASCII 表示的憑證序號。Provides the certificate serial number as an ASCII representation of hexadecimal bytes separated by hyphens. 例如 04-67-F3-02。For example, 04-67-F3-02.

ServerIssuer

取得伺服器憑證的簽發者欄位。Gets the issuer field of the server certificate.

ServerSubject

取得伺服器憑證的主旨欄位。Gets the subject field of the server certificate.

Subject

取得用戶端憑證的主旨欄位。Gets the subject field of the client certificate.

ValidFrom

取得憑證變成有效時的日期。Gets the date when the certificate becomes valid. 日期會隨著國際設定而變。The date varies with international settings.

ValidUntil

取得憑證到期日。Gets the certificate expiration date.

方法

Add(NameValueCollection)

將指定 NameValueCollection 中的項目複製到目前的 NameValueCollectionCopies the entries in the specified NameValueCollection to the current NameValueCollection.

(繼承來源 NameValueCollection)
Add(String, String)

將具有指定名稱和數值的項目加入 NameValueCollectionAdds an entry with the specified name and value to the NameValueCollection.

(繼承來源 NameValueCollection)
BaseAdd(String, Object)

將具有指定索引鍵和值的項目加入 NameObjectCollectionBase 執行個體。Adds an entry with the specified key and value into the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseClear()

將所有項目從 NameObjectCollectionBase 執行個體中移除。Removes all entries from the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseGet(Int32)

取得 NameObjectCollectionBase 執行個體指定索引處之項目的值。Gets the value of the entry at the specified index of the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseGet(String)

NameObjectCollectionBase 執行個體取得具有指定索引鍵之第一個項目的值。Gets the value of the first entry with the specified key from the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseGetAllKeys()

傳回 String 陣列,其中包含 NameObjectCollectionBase 執行個體中的所有索引鍵。Returns a String array that contains all the keys in the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseGetAllValues()

傳回 Object 陣列,其中包含 NameObjectCollectionBase 執行個體中的所有值。Returns an Object array that contains all the values in the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseGetAllValues(Type)

傳回指定類型的陣列,其中包含 NameObjectCollectionBase 執行個體中的所有值。Returns an array of the specified type that contains all the values in the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseGetKey(Int32)

取得 NameObjectCollectionBase 執行個體指定索引處之項目的索引鍵。Gets the key of the entry at the specified index of the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseHasKeys()

取得值,表示 NameObjectCollectionBase 執行個體是否包含其索引鍵不是 null 的項目。Gets a value indicating whether the NameObjectCollectionBase instance contains entries whose keys are not null.

(繼承來源 NameObjectCollectionBase)
BaseRemove(String)

將具有指定索引鍵的項目從 NameObjectCollectionBase 中移除。Removes the entries with the specified key from the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseRemoveAt(Int32)

移除 NameObjectCollectionBase 執行個體指定索引處的項目。Removes the entry at the specified index of the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseSet(Int32, Object)

設定 NameObjectCollectionBase 執行個體指定索引處之項目的值。Sets the value of the entry at the specified index of the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
BaseSet(String, Object)

設定 NameObjectCollectionBase 執行個體中具有指定索引鍵之第一個項目的值 (如果有找到),否則將具有指定索引鍵和值的項目加入 NameObjectCollectionBase 執行個體。Sets the value of the first entry with the specified key in the NameObjectCollectionBase instance, if found; otherwise, adds an entry with the specified key and value into the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
Clear()

使快取陣列失效,並移除 NameValueCollection 中的所有項目。Invalidates the cached arrays and removes all entries from the NameValueCollection.

(繼承來源 NameValueCollection)
CopyTo(Array, Int32)

從目標陣列的指定索引開始,將整個 NameValueCollection 複製到相容的一維 ArrayCopies the entire NameValueCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

(繼承來源 NameValueCollection)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
Get(Int32)

取得 NameValueCollection 之指定索引處的值,這些值會結合成為一個逗號分隔清單。Gets the values at the specified index of the NameValueCollection combined into one comma-separated list.

(繼承來源 NameValueCollection)
Get(String)

根據名稱傳回個別的用戶端憑證欄位。Returns individual client certificate fields by name.

GetEnumerator()

傳回在 NameObjectCollectionBase 中逐一查看的列舉值。Returns an enumerator that iterates through the NameObjectCollectionBase.

(繼承來源 NameObjectCollectionBase)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetKey(Int32)

取得 NameValueCollection 之指定索引處的索引鍵。Gets the key at the specified index of the NameValueCollection.

(繼承來源 NameValueCollection)
GetObjectData(SerializationInfo, StreamingContext)

實作 ISerializable 介面,並傳回序列化 NameObjectCollectionBase 執行個體所需的資料。Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance.

(繼承來源 NameObjectCollectionBase)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
GetValues(Int32)

取得 NameValueCollection 之指定索引處的值。Gets the values at the specified index of the NameValueCollection.

(繼承來源 NameValueCollection)
GetValues(String)

取得與 NameValueCollection 中指定索引鍵相關聯的值。Gets the values associated with the specified key from the NameValueCollection.

(繼承來源 NameValueCollection)
HasKeys()

取得值,表示 NameValueCollection 是否包含非 null 的索引鍵。Gets a value indicating whether the NameValueCollection contains keys that are not null.

(繼承來源 NameValueCollection)
InvalidateCachedArrays()

將集合的快取陣列重設為 nullResets the cached arrays of the collection to null.

(繼承來源 NameValueCollection)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnDeserialization(Object)

實作 ISerializable 介面,並於還原序列化完成時引發還原序列化事件。Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.

(繼承來源 NameObjectCollectionBase)
Remove(String)

將具有指定索引鍵的項目從 NameObjectCollectionBase 中移除。Removes the entries with the specified key from the NameObjectCollectionBase instance.

(繼承來源 NameValueCollection)
Set(String, String)

設定 NameValueCollection 中項目的值。Sets the value of an entry in the NameValueCollection.

(繼承來源 NameValueCollection)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

從目標陣列的指定索引開始,將整個 NameObjectCollectionBase 複製到相容的一維 ArrayCopies the entire NameObjectCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(繼承來源 NameObjectCollectionBase)
ICollection.IsSynchronized

取得值,表示是否要同步處理 (執行緒安全) 對 NameObjectCollectionBase 物件的存取。Gets a value indicating whether access to the NameObjectCollectionBase object is synchronized (thread safe).

(繼承來源 NameObjectCollectionBase)
ICollection.SyncRoot

取得可用來同步處理對 NameObjectCollectionBase 物件之存取的物件。Gets an object that can be used to synchronize access to the NameObjectCollectionBase object.

(繼承來源 NameObjectCollectionBase)

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

適用於