Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SslServerAuthenticationOptions.cs
Go to the documentation of this file.
1
using
System.Collections.Generic
;
2
using
System.Security.Authentication
;
3
using
System.Security.Cryptography.X509Certificates
;
4
5
namespace
System.Net.Security
;
6
7
public
class
SslServerAuthenticationOptions
8
{
9
private
X509RevocationMode
_checkCertificateRevocation
;
10
11
private
SslProtocols
_enabledSslProtocols
;
12
13
private
EncryptionPolicy
_encryptionPolicy
;
14
15
private
bool
_allowRenegotiation
=
true
;
16
17
public
bool
AllowRenegotiation
18
{
19
get
20
{
21
return
_allowRenegotiation
;
22
}
23
set
24
{
25
_allowRenegotiation
=
value
;
26
}
27
}
28
29
public
bool
ClientCertificateRequired
{
get
;
set
; }
30
31
public
List<SslApplicationProtocol>
?
ApplicationProtocols
{
get
;
set
; }
32
33
public
RemoteCertificateValidationCallback? RemoteCertificateValidationCallback {
get
;
set
; }
34
35
public
ServerCertificateSelectionCallback? ServerCertificateSelectionCallback {
get
;
set
; }
36
37
public
X509Certificate
?
ServerCertificate
{
get
;
set
; }
38
39
public
SslStreamCertificateContext
?
ServerCertificateContext
{
get
;
set
; }
40
41
public
SslProtocols
EnabledSslProtocols
42
{
43
get
44
{
45
return
_enabledSslProtocols
;
46
}
47
set
48
{
49
_enabledSslProtocols
=
value
;
50
}
51
}
52
53
public
X509RevocationMode
CertificateRevocationCheckMode
54
{
55
get
56
{
57
return
_checkCertificateRevocation
;
58
}
59
set
60
{
61
if
(
value
!= 0 &&
value
!=
X509RevocationMode
.Offline &&
value
!=
X509RevocationMode
.Online)
62
{
63
throw
new
ArgumentException
(
System
.
SR
.
Format
(
System
.
SR
.
net_invalid_enum
,
"X509RevocationMode"
),
"value"
);
64
}
65
_checkCertificateRevocation
=
value
;
66
}
67
}
68
69
public
EncryptionPolicy
EncryptionPolicy
70
{
71
get
72
{
73
return
_encryptionPolicy
;
74
}
75
set
76
{
77
if
(
value
!= 0 &&
value
!=
EncryptionPolicy
.AllowNoEncryption &&
value
!=
EncryptionPolicy
.NoEncryption)
78
{
79
throw
new
ArgumentException
(
System
.
SR
.
Format
(
System
.
SR
.
net_invalid_enum
,
"EncryptionPolicy"
),
"value"
);
80
}
81
_encryptionPolicy
=
value
;
82
}
83
}
84
85
public
CipherSuitesPolicy
?
CipherSuitesPolicy
{
get
;
set
; }
86
}
System.ArgumentException
Definition
ArgumentException.cs:9
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Net.Security.CipherSuitesPolicy
Definition
CipherSuitesPolicy.cs:6
System.Net.Security.SslServerAuthenticationOptions._enabledSslProtocols
SslProtocols _enabledSslProtocols
Definition
SslServerAuthenticationOptions.cs:11
System.Net.Security.SslServerAuthenticationOptions._encryptionPolicy
EncryptionPolicy _encryptionPolicy
Definition
SslServerAuthenticationOptions.cs:13
System.Net.Security.SslServerAuthenticationOptions.ServerCertificateContext
SslStreamCertificateContext? ServerCertificateContext
Definition
SslServerAuthenticationOptions.cs:39
System.Net.Security.SslServerAuthenticationOptions.ClientCertificateRequired
bool ClientCertificateRequired
Definition
SslServerAuthenticationOptions.cs:29
System.Net.Security.SslServerAuthenticationOptions.ApplicationProtocols
List< SslApplicationProtocol >? ApplicationProtocols
Definition
SslServerAuthenticationOptions.cs:31
System.Net.Security.SslServerAuthenticationOptions.ServerCertificate
X509Certificate? ServerCertificate
Definition
SslServerAuthenticationOptions.cs:37
System.Net.Security.SslServerAuthenticationOptions.AllowRenegotiation
bool AllowRenegotiation
Definition
SslServerAuthenticationOptions.cs:18
System.Net.Security.SslServerAuthenticationOptions._allowRenegotiation
bool _allowRenegotiation
Definition
SslServerAuthenticationOptions.cs:15
System.Net.Security.SslServerAuthenticationOptions._checkCertificateRevocation
X509RevocationMode _checkCertificateRevocation
Definition
SslServerAuthenticationOptions.cs:9
System.Net.Security.SslServerAuthenticationOptions.EnabledSslProtocols
SslProtocols EnabledSslProtocols
Definition
SslServerAuthenticationOptions.cs:42
System.Net.Security.SslServerAuthenticationOptions.CertificateRevocationCheckMode
X509RevocationMode CertificateRevocationCheckMode
Definition
SslServerAuthenticationOptions.cs:54
System.Net.Security.SslServerAuthenticationOptions
Definition
SslServerAuthenticationOptions.cs:8
System.Net.Security.SslStreamCertificateContext
Definition
SslStreamCertificateContext.cs:7
System.SR.net_invalid_enum
static string net_invalid_enum
Definition
SR.cs:40
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR
Definition
SR.cs:7
System.Security.Cryptography.X509Certificates.X509Certificate
Definition
X509Certificate.cs:12
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Net.Security.EncryptionPolicy
EncryptionPolicy
Definition
EncryptionPolicy.cs:4
System.Net.Security
Definition
CertificateHelper.cs:4
System.Security.Authentication.SslProtocols
SslProtocols
Definition
SslProtocols.cs:5
System.Security.Authentication
Definition
ExtendedProtectionPolicyTypeConverter.cs:8
System.Security.Cryptography.X509Certificates.X509RevocationMode
X509RevocationMode
Definition
X509RevocationMode.cs:4
System.Security.Cryptography.X509Certificates
Definition
CertificateAsn.cs:4
System.ExceptionArgument.value
@ value
System
Definition
BlockingCollection.cs:8
source
System.Net.Security
System.Net.Security
SslServerAuthenticationOptions.cs
Generated by
1.10.0