Home
last modified time | relevance | path

Searched refs:EncryptionPolicy (Results 1 – 25 of 98) sorted by relevance

1234

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Security/tests/UnitTests/
H A DSslAuthenticationOptionsTests.cs149 Assert.Equal(EncryptionPolicy.RequireEncryption, _clientOptions.EncryptionPolicy); in EncryptionPolicy_Get_Set_Succeeds()
150 Assert.Equal(EncryptionPolicy.RequireEncryption, _serverOptions.EncryptionPolicy); in EncryptionPolicy_Get_Set_Succeeds()
152 _clientOptions.EncryptionPolicy = EncryptionPolicy.AllowNoEncryption; in EncryptionPolicy_Get_Set_Succeeds()
153 _serverOptions.EncryptionPolicy = EncryptionPolicy.NoEncryption; in EncryptionPolicy_Get_Set_Succeeds()
155 Assert.Equal(EncryptionPolicy.AllowNoEncryption, _clientOptions.EncryptionPolicy); in EncryptionPolicy_Get_Set_Succeeds()
156 Assert.Equal(EncryptionPolicy.NoEncryption, _serverOptions.EncryptionPolicy); in EncryptionPolicy_Get_Set_Succeeds()
158 … Assert.Throws<ArgumentException>(() => _clientOptions.EncryptionPolicy = (EncryptionPolicy)3); in EncryptionPolicy_Get_Set_Succeeds()
159 … Assert.Throws<ArgumentException>(() => _serverOptions.EncryptionPolicy = (EncryptionPolicy)3); in EncryptionPolicy_Get_Set_Succeeds()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Security/src/System/Net/Security/
H A DSslServerAuthenticationOptions.cs15 private EncryptionPolicy _encryptionPolicy = EncryptionPolicy.RequireEncryption;
54 public EncryptionPolicy EncryptionPolicy property in System.Net.Security.SslServerAuthenticationOptions
59 …if (value != EncryptionPolicy.RequireEncryption && value != EncryptionPolicy.AllowNoEncryption && …
61 …throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(EncryptionPolicy)), nameof(value…
H A DSslClientAuthenticationOptions.cs14 private EncryptionPolicy _encryptionPolicy = EncryptionPolicy.RequireEncryption;
52 public EncryptionPolicy EncryptionPolicy property in System.Net.Security.SslClientAuthenticationOptions
57 …if (value != EncryptionPolicy.RequireEncryption && value != EncryptionPolicy.AllowNoEncryption && …
59 …throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(EncryptionPolicy)), nameof(value…
H A DSslAuthenticationOptions.cs22 EncryptionPolicy = sslClientAuthenticationOptions.EncryptionPolicy; in SslAuthenticationOptions()
43 EncryptionPolicy = sslServerAuthenticationOptions.EncryptionPolicy; in SslAuthenticationOptions()
64 internal EncryptionPolicy EncryptionPolicy { get; set; } property in System.Net.Security.SslAuthenticationOptions
H A DSslStream.cs16 public enum EncryptionPolicy enum
47 internal EncryptionPolicy _encryptionPolicy;
55 … : this(innerStream, leaveInnerStreamOpen, null, null, EncryptionPolicy.RequireEncryption) in SslStream()
60 …eam, leaveInnerStreamOpen, userCertificateValidationCallback, null, EncryptionPolicy.RequireEncryp… in SslStream()
66 …serCertificateValidationCallback, userCertificateSelectionCallback, EncryptionPolicy.RequireEncryp… in SslStream()
71 …LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPol… in SslStream()
74 …Policy != EncryptionPolicy.RequireEncryption && encryptionPolicy != EncryptionPolicy.AllowNoEncryp… in SslStream()
169 EncryptionPolicy = _encryptionPolicy, in BeginAuthenticateAsClient()
225 EncryptionPolicy = _encryptionPolicy, in BeginAuthenticateAsServer()
293 EncryptionPolicy = _encryptionPolicy, in AuthenticateAsClient()
[all …]
H A DSslSessionsCache.cs26 private readonly EncryptionPolicy _encryptionPolicy;
34 …CredKey(byte[] thumbPrint, int allowedProtocols, bool isServerMode, EncryptionPolicy encryptionPol… in SslCredKey()
117 …ential(byte[] thumbPrint, SslProtocols sslProtocols, bool isServer, EncryptionPolicy encryptionPol… in TryCachedCredential()
144 …creds, byte[] thumbPrint, SslProtocols sslProtocols, bool isServer, EncryptionPolicy encryptionPol… in CacheCredential()
H A DSslStreamPal.Windows.cs141 …dentialsHandle(X509Certificate certificate, SslProtocols protocols, EncryptionPolicy policy, bool … in AcquireCredentialsHandle()
157 … && (policy != EncryptionPolicy.AllowNoEncryption) && (policy != EncryptionPolicy.NoEncryption)) in AcquireCredentialsHandle()
401 int protocols, EncryptionPolicy policy) in CreateSecureCredential()
416 if (policy == EncryptionPolicy.RequireEncryption) in CreateSecureCredential()
422 else if (policy == EncryptionPolicy.AllowNoEncryption) in CreateSecureCredential()
428 else if (policy == EncryptionPolicy.NoEncryption) in CreateSecureCredential()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/net/System/Net/Configuration/
H A DServicePointManagerElement.cs82 …[ConfigurationProperty(ConfigurationStrings.EncryptionPolicy, DefaultValue = EncryptionPolicy.Requ…
83 public EncryptionPolicy EncryptionPolicy property in System.Net.Configuration.ServicePointManagerElement
85 get { return (EncryptionPolicy)this[this.encryptionPolicy]; }
139 new ConfigurationProperty(ConfigurationStrings.EncryptionPolicy,
140 typeof(EncryptionPolicy),
141 EncryptionPolicy.RequireEncryption,
H A DSettingsSection.cs160 this.encryptionPolicy = section.ServicePointManager.EncryptionPolicy; in SettingsSectionInternal()
254 internal EncryptionPolicy EncryptionPolicy property in System.Net.Configuration.SettingsSectionInternal
338 EncryptionPolicy encryptionPolicy;
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Security/tests/FunctionalTests/
H A DServerRequireEncryptionTest.cs39 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.RequireEncryption)) in ServerRequireEncryption_ClientRequireEncryption_ConnectWithEncryption()
44 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.RequireEncryp… in ServerRequireEncryption_ClientRequireEncryption_ConnectWithEncryption()
59 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.RequireEncryption)) in ServerRequireEncryption_ClientAllowNoEncryption_ConnectWithEncryption()
64 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.AllowNoEncryp… in ServerRequireEncryption_ClientAllowNoEncryption_ConnectWithEncryption()
79 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.RequireEncryption)) in ServerRequireEncryption_ClientNoEncryption_NoConnect()
83 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.NoEncryption)) in ServerRequireEncryption_ClientNoEncryption_NoConnect()
H A DServerAllowNoEncryptionTest.cs40 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.AllowNoEncryption)) in ServerAllowNoEncryption_ClientRequireEncryption_ConnectWithEncryption()
45 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.RequireEncryp… in ServerAllowNoEncryption_ClientRequireEncryption_ConnectWithEncryption()
61 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.AllowNoEncryption)) in ServerAllowNoEncryption_ClientAllowNoEncryption_ConnectWithEncryption()
66 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.AllowNoEncryp… in ServerAllowNoEncryption_ClientAllowNoEncryption_ConnectWithEncryption()
82 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.AllowNoEncryption)) in ServerAllowNoEncryption_ClientNoEncryption_ConnectWithNoEncryption()
87 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.NoEncryption)) in ServerAllowNoEncryption_ClientNoEncryption_ConnectWithNoEncryption()
H A DServerNoEncryptionTest.cs39 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.NoEncryption)) in ServerNoEncryption_ClientRequireEncryption_NoConnect()
44 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.RequireEncryp… in ServerNoEncryption_ClientRequireEncryption_NoConnect()
57 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.NoEncryption)) in ServerNoEncryption_ClientAllowNoEncryption_ConnectWithNoEncryption()
62 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.AllowNoEncryp… in ServerNoEncryption_ClientAllowNoEncryption_ConnectWithNoEncryption()
81 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.NoEncryption)) in ServerNoEncryption_ClientNoEncryption_ConnectWithNoEncryption()
86 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.NoEncryption)) in ServerNoEncryption_ClientNoEncryption_ConnectWithNoEncryption()
H A DClientAsyncAuthenticateTest.cs30 await ClientAsyncSslHelper(EncryptionPolicy.RequireEncryption); in ClientAsyncAuthenticate_ServerRequireEncryption_ConnectWithEncryption()
36 … await Assert.ThrowsAsync<IOException>(() => ClientAsyncSslHelper(EncryptionPolicy.NoEncryption)); in ClientAsyncAuthenticate_ServerNoEncryption_NoConnect()
122 private Task ClientAsyncSslHelper(EncryptionPolicy encryptionPolicy) in ClientAsyncSslHelper()
129 …return ClientAsyncSslHelper(EncryptionPolicy.RequireEncryption, clientSslProtocols, serverSslProto… in ClientAsyncSslHelper()
133 EncryptionPolicy encryptionPolicy, in ClientAsyncSslHelper()
H A DClientDefaultEncryptionTest.cs40 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.RequireEncryption)) in ClientDefaultEncryption_ServerRequireEncryption_ConnectWithEncryption()
61 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.AllowNoEncryption)) in ClientDefaultEncryption_ServerAllowNoEncryption_ConnectWithEncryption()
81 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.NoEncryption)) in ClientDefaultEncryption_ServerNoEncryption_NoConnect()
H A DDummyTcpServer.cs30 private EncryptionPolicy _sslEncryptionPolicy;
46 public DummyTcpServer(IPEndPoint endPoint, EncryptionPolicy? sslEncryptionPolicy) in DummyTcpServer()
54 _sslEncryptionPolicy = (EncryptionPolicy)sslEncryptionPolicy; in DummyTcpServer()
266 public ClientState(TcpClient client, EncryptionPolicy sslEncryptionPolicy) in ClientState()
H A DParameterValidationTest.cs29 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.RequireEncryption)) in SslStreamConstructor_BadEncryptionPolicy_ThrowException()
36 …= new SslStream(client.GetStream(), false, AllowAnyServerCertificate, null, (EncryptionPolicy)100); in SslStreamConstructor_BadEncryptionPolicy_ThrowException()
H A DTransportContextTest.cs31 new IPEndPoint(IPAddress.Loopback, 0), EncryptionPolicy.RequireEncryption)) in TransportContext_ConnectToServerWithSsl_GetExpectedChannelBindings()
36 …lStream(client.GetStream(), false, AllowAnyServerCertificate, null, EncryptionPolicy.RequireEncryp… in TransportContext_ConnectToServerWithSsl_GetExpectedChannelBindings()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/net/System/Net/SecureProtocols/
H A DSslStream.cs41 public enum EncryptionPolicy enum
78 … :this(innerStream, leaveInnerStreamOpen, null, null, EncryptionPolicy.RequireEncryption) in SslStream()
82 …eam, leaveInnerStreamOpen, userCertificateValidationCallback, null, EncryptionPolicy.RequireEncryp… in SslStream()
87 …serCertificateValidationCallback, userCertificateSelectionCallback, EncryptionPolicy.RequireEncryp… in SslStream()
91 …LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPol… in SslStream()
94 …Policy != EncryptionPolicy.RequireEncryption && encryptionPolicy != EncryptionPolicy.AllowNoEncryp… in SslStream()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/System/Net/Security/Unix/
H A DSafeFreeSslCredentials.cs21 private EncryptionPolicy _policy;
39 internal EncryptionPolicy Policy
44 …afeFreeSslCredentials(X509Certificate certificate, SslProtocols protocols, EncryptionPolicy policy) in SafeFreeSslCredentials()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/net/System/Net/
H A D_SslSessionsCache.cs41 private EncryptionPolicy _EncryptionPolicy;
48 …ernal SslCredKey(byte[] thumbPrint, SchProtocols allowedProtocols, EncryptionPolicy encryptionPol… in SslCredKey()
130 …yCachedCredential(byte[] thumbPrint, SchProtocols allowedProtocols, EncryptionPolicy encryptionPol… in TryCachedCredential()
157 …redentials creds, byte[] thumbPrint, SchProtocols allowedProtocols, EncryptionPolicy encryptionPol… in CacheCredential()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/ReferenceSources/
H A DSettingsSectionInternal.cs29 internal EncryptionPolicy EncryptionPolicy { get; private set; } property in System.Net.Configuration.SettingsSectionInternal
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Security/src/System/Net/Security/Pal.OSX/
H A DSafeFreeSslCredentials.cs14 …afeFreeSslCredentials(X509Certificate certificate, SslProtocols protocols, EncryptionPolicy policy) in SafeFreeSslCredentials()
42 public EncryptionPolicy Policy { get; }
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.ServicePoint/src/System/Net/
H A DServicePointManager.cs103 … public static EncryptionPolicy EncryptionPolicy { get; } = EncryptionPolicy.RequireEncryption; property in System.Net.ServicePointManager
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/System.Net/
H A DServicePointManager.platformnotsupported.cs95 public static EncryptionPolicy EncryptionPolicy { property in System.Net.ServicePointManager
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.ServicePoint/ref/
H A DSystem.Net.ServicePoint.cs48 public static System.Net.Security.EncryptionPolicy EncryptionPolicy { get { throw null; } } property in System.Net.ServicePointManager

1234