30 references to UnixDomainSocketClientCredentialType
Binding.UDS.IntegrationTests (3)
UDSBindingTests.cs (3)
76
binding.Security.Transport.ClientCredentialType = System.ServiceModel.
UnixDomainSocketClientCredentialType
.Windows;
107
binding.Security.Transport.ClientCredentialType = System.ServiceModel.
UnixDomainSocketClientCredentialType
.Certificate;
157
binding.Security.Transport.ClientCredentialType = System.ServiceModel.
UnixDomainSocketClientCredentialType
.PosixIdentity;
System.ServiceModel.UnixDomainSocket (17)
System\ServiceModel\UnixDomainSocketClientCredentialTypeHelper.cs (6)
8
internal static bool IsDefined(
UnixDomainSocketClientCredentialType
value)
10
return (value ==
UnixDomainSocketClientCredentialType
.None ||
11
value ==
UnixDomainSocketClientCredentialType
.Windows ||
12
value ==
UnixDomainSocketClientCredentialType
.Certificate ||
13
value ==
UnixDomainSocketClientCredentialType
.Default ||
14
value ==
UnixDomainSocketClientCredentialType
.PosixIdentity
System\ServiceModel\UnixDomainSocketSecurity.cs (2)
59
if((_mode == UnixDomainSocketSecurityMode.TransportCredentialOnly && Transport.ClientCredentialType !=
UnixDomainSocketClientCredentialType
.PosixIdentity)
61
(_mode == UnixDomainSocketSecurityMode.Transport && Transport.ClientCredentialType ==
UnixDomainSocketClientCredentialType
.PosixIdentity))
System\ServiceModel\UnixDomainSocketTransportSecurity.cs (9)
16
internal const
UnixDomainSocketClientCredentialType
DefaultClientCredentialType =
UnixDomainSocketClientCredentialType
.Default;
19
private
UnixDomainSocketClientCredentialType
_clientCredentialType;
33
public
UnixDomainSocketClientCredentialType
ClientCredentialType
138
if (_clientCredentialType ==
UnixDomainSocketClientCredentialType
.Default)
152
else if (_clientCredentialType ==
UnixDomainSocketClientCredentialType
.Certificate)
156
else if(_clientCredentialType ==
UnixDomainSocketClientCredentialType
.Windows)
163
else if (_clientCredentialType ==
UnixDomainSocketClientCredentialType
.PosixIdentity)
171
else if(_clientCredentialType ==
UnixDomainSocketClientCredentialType
.None)
System.ServiceModel.UnixDomainSocket.Tests (10)
ServiceModel\UnixDomainSocketTransportSecurityTest.cs (10)
19
Assert.True(transport.ClientCredentialType ==
UnixDomainSocketClientCredentialType
.Default,
20
String.Format("ClientCredentialType should have been '{0}' but was '{1}'",
UnixDomainSocketClientCredentialType
.Default, transport.ClientCredentialType));
24
[InlineData(
UnixDomainSocketClientCredentialType
.None)]
25
[InlineData(
UnixDomainSocketClientCredentialType
.Windows)]
26
[InlineData(
UnixDomainSocketClientCredentialType
.Certificate)]
27
[InlineData(
UnixDomainSocketClientCredentialType
.Default)]
28
[InlineData(
UnixDomainSocketClientCredentialType
.PosixIdentity)]
29
public static void ClientCredentialType_Property_Sets(
UnixDomainSocketClientCredentialType
credentialType)
33
Assert.Equal<
UnixDomainSocketClientCredentialType
>(credentialType, transport.ClientCredentialType);
40
Assert.Throws<ArgumentOutOfRangeException>(() => transport.ClientCredentialType = (
UnixDomainSocketClientCredentialType
)999);