HttpTransportInformation
HttpTransportInformation
HttpTransportInformation
HttpTransportInformation
Class
Definition
Provides information about the underlying transport used by the HTTP connection.
public : sealed class HttpTransportInformation : IStringable, IHttpTransportInformationpublic sealed class HttpTransportInformation : IStringable, IHttpTransportInformationPublic NotInheritable Class HttpTransportInformation Implements IStringable, IHttpTransportInformation// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
The primary use of the HttpTransportInformation object is to get SSL information when SSL is used for the HTTP connection.
Properties
ServerCertificate ServerCertificate ServerCertificate ServerCertificate
Gets the certificate from the server with the SSL information.
public : Certificate ServerCertificate { get; }public Certificate ServerCertificate { get; }Public ReadOnly Property ServerCertificate As Certificate// You can use this property in JavaScript.
The certificate from the server with the SSL information.
Remarks
This property gets the server certificate used for an SSL connection. This certificate is provided by the server during the SSL connection negotiation. The properties on the Certificate object returned can be used to determine detailed information on the certificate.
This property is useful for notifying the user why an SSL connection failed.
This property can also be used to enforce stronger security than the default connection using the Certificate object returned. The BuildChainAsync methods and other properties on the Certificate object and methods on the CertificateChain object can be used when an app requires stronger security than the standard SSL negotiation.
ServerCertificateErrors ServerCertificateErrors ServerCertificateErrors ServerCertificateErrors
Gets the list of errors that occurred making an SSL connection.
public : IVectorView<ChainValidationResult> ServerCertificateErrors { get; }public IReadOnlyList<ChainValidationResult> ServerCertificateErrors { get; }Public ReadOnly Property ServerCertificateErrors As IReadOnlyList<ChainValidationResult>// You can use this property in JavaScript.
- Value
- IVectorView<ChainValidationResult> IReadOnlyList<ChainValidationResult> IReadOnlyList<ChainValidationResult> IReadOnlyList<ChainValidationResult>
The list of errors that occurred making an SSL connection.
ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity
Gets the category of an error on an SSL connection.
public : SocketSslErrorSeverity ServerCertificateErrorSeverity { get; }public SocketSslErrorSeverity ServerCertificateErrorSeverity { get; }Public ReadOnly Property ServerCertificateErrorSeverity As SocketSslErrorSeverity// You can use this property in JavaScript.
The category of error on an SSL connection.
Remarks
SSL server errors should only be ignored in advanced scenarios. Disregarding server certificate errors when the ServerCertificateErrorSeverity property is either Ignorable or Fatal may result in the loss of privacy or integrity of the content passed over the SSL session.
ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates
Gets the intermediate certificates sent by the server during SSL negotiation on this HttpTransportInformation object.
public : IVectorView<Certificate> ServerIntermediateCertificates { get; }public IReadOnlyList<Certificate> ServerIntermediateCertificates { get; }Public ReadOnly Property ServerIntermediateCertificates As IReadOnlyList<Certificate>// You can use this property in JavaScript.
- Value
- IVectorView<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate>
The set of certificates sent by the server during SSL negotiation on this HttpTransportInformation object.
Remarks
This property returns the intermediate server certificates used for an SSL connection. These certificates are provided by the server during the SSL connection negotiation. The properties on the Certificate objects in the returned vector can be used to determine detailed information on the certificates.
This property can also be used to enforce stronger security than the default connection using the Certificate objects returned. The BuildChainAsync methods and other properties on the Certificate objects and methods on the CertificateChain object can be used when an app requires stronger security than the standard SSL negotiation.
Methods
ToString() ToString() ToString() ToString()
Returns a string that represents the current HttpTransportInformation object.
public : PlatForm::String ToString()public string ToString()Public Function ToString() As string// You can use this method in JavaScript.
A string that represents the current object.