mscorlib(4.0.0.0) API with additions
|
Classes | |
class | AuthenticatedStream |
Provides methods for passing credentials across a stream and requesting or performing authentication for client-server applications. More... | |
class | NegotiateStream |
Provides a stream that uses the Negotiate security protocol to authenticate the client, and optionally the server, in client-server communication. More... | |
class | SslStream |
Provides a stream used for client-server communication that uses the Secure Socket Layer (SSL) security protocol to authenticate the server and optionally the client. More... | |
Enumerations | |
enum | AuthenticationLevel { AuthenticationLevel.None, AuthenticationLevel.MutualAuthRequested, AuthenticationLevel.MutualAuthRequired } |
Specifies client requirements for authentication and impersonation when using the T:System.Net.WebRequest class and derived classes to request a resource. More... | |
enum | EncryptionPolicy { EncryptionPolicy.RequireEncryption, EncryptionPolicy.AllowNoEncryption, EncryptionPolicy.NoEncryption } |
The EncryptionPolicy to use. More... | |
enum | ProtectionLevel { ProtectionLevel.None, ProtectionLevel.Sign, ProtectionLevel.EncryptAndSign } |
Indicates the security services requested for an authenticated stream. More... | |
enum | SslPolicyErrors { SslPolicyErrors.None = 0x0, SslPolicyErrors.RemoteCertificateNotAvailable = 0x1, SslPolicyErrors.RemoteCertificateNameMismatch = 0x2, SslPolicyErrors.RemoteCertificateChainErrors = 0x4 } |
Enumerates Secure Socket Layer (SSL) policy errors. More... | |
enum | TlsAlertMessage { CloseNotify = 0, UnexpectedMessage = 10, BadRecordMac = 20, DecryptionFailed = 21, RecordOverflow = 22, DecompressionFail = 30, HandshakeFailure = 40, BadCertificate = 42, UnsupportedCert = 43, CertificateRevoked = 44, CertificateExpired = 45, CertificateUnknown = 46, IllegalParameter = 47, UnknownCA = 48, AccessDenied = 49, DecodeError = 50, DecryptError = 51, ExportRestriction = 60, ProtocolVersion = 70, InsuffientSecurity = 71, InternalError = 80, UserCanceled = 90, NoRenegotiation = 100, UnsupportedExt = 110 } |
enum | TlsAlertType { Warning = 1, Fatal } |
Functions | |
delegate X509Certificate | LocalCertificateSelectionCallback (object sender, string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers) |
Selects the local Secure Sockets Layer (SSL) certificate used for authentication. More... | |
internal delegate X509Certificate | LocalCertSelectionCallback (string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers) |
delegate bool | RemoteCertificateValidationCallback (object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) |
Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication. More... | |
internal delegate bool | RemoteCertValidationCallback (string host, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) |
|
strong |
Specifies client requirements for authentication and impersonation when using the T:System.Net.WebRequest class and derived classes to request a resource.
Definition at line 5 of file AuthenticationLevel.cs.
|
strong |
The EncryptionPolicy to use.
Definition at line 4 of file EncryptionPolicy.cs.
|
strong |
Indicates the security services requested for an authenticated stream.
Definition at line 4 of file ProtectionLevel.cs.
|
strong |
Enumerates Secure Socket Layer (SSL) policy errors.
Definition at line 6 of file SslPolicyErrors.cs.
delegate X509Certificate System.Net.Security.LocalCertificateSelectionCallback | ( | object | sender, |
string | targetHost, | ||
X509CertificateCollection | localCertificates, | ||
X509Certificate | remoteCertificate, | ||
string [] | acceptableIssuers | ||
) |
Selects the local Secure Sockets Layer (SSL) certificate used for authentication.
sender | An object that contains state information for this validation. |
targetHost | The host server specified by the client. |
localCertificates | An T:System.Security.Cryptography.X509Certificates.X509CertificateCollection containing local certificates. |
remoteCertificate | The certificate used to authenticate the remote party. |
acceptableIssuers | A T:System.String array of certificate issuers acceptable to the remote party. |
delegate bool System.Net.Security.RemoteCertificateValidationCallback | ( | object | sender, |
X509Certificate | certificate, | ||
X509Chain | chain, | ||
SslPolicyErrors | sslPolicyErrors | ||
) |
Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication.
sender | An object that contains state information for this validation. |
certificate | The certificate used to authenticate the remote party. |
chain | The chain of certificate authorities associated with the remote certificate. |
sslPolicyErrors | One or more errors associated with the remote certificate. |