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
- 继承
注解
如果 Web 浏览器使用 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.
有关数字证书的详细信息,请参阅文档 x.509:公钥和属性证书框架,可在国际电信联合 (ITU) 网站上找到 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 |
获取证书中的公钥二进制值。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 中的项复制到当前 NameValueCollection。Copies the entries in the specified NameValueCollection to the current NameValueCollection. (继承自 NameValueCollection) |
| Add(String, String) |
将具有指定名称和值的项添加到 NameValueCollection。Adds 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 实例是否包含键不为 |
| 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 复制到兼容的一维 Array。Copies 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() |
获取当前实例的 Type。Gets 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 是否包含非 |
| InvalidateCachedArrays() |
将集合的缓存数组重置为 |
| 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 复制到兼容的一维 Array。Copies 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 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |