2 types derived from ServiceModelSecurityTokenRequirement
System.ServiceModel (2)
System\ServiceModel\Security\Tokens\InitiatorServiceModelSecurityTokenRequirement.cs (1)
17
public sealed class InitiatorServiceModelSecurityTokenRequirement :
ServiceModelSecurityTokenRequirement
System\ServiceModel\Security\Tokens\RecipientServiceModelSecurityTokenRequirement.cs (1)
19
public sealed class RecipientServiceModelSecurityTokenRequirement :
ServiceModelSecurityTokenRequirement
103 references to ServiceModelSecurityTokenRequirement
System.ServiceModel (103)
System\ServiceModel\Channels\PeerSecurityManager.cs (12)
722
ServiceModelSecurityTokenRequirement
req = PeerClientSecurityTokenManager.CreateRequirement(SecurityTokenTypes.UserName);
749
ServiceModelSecurityTokenRequirement
req = PeerClientSecurityTokenManager.CreateRequirement(SecurityTokenTypes.X509Certificate);
861
internal static
ServiceModelSecurityTokenRequirement
CreateRequirement(string tokenType)
866
internal static
ServiceModelSecurityTokenRequirement
CreateRequirement(string tokenType, bool forMessageValidation)
883
ServiceModelSecurityTokenRequirement
requirement = CreateRequirement(SecurityTokenTypes.UserName);
912
ServiceModelSecurityTokenRequirement
requirement = tokenRequirement as
ServiceModelSecurityTokenRequirement
;
976
bool IsPasswordTokenRequirement(
ServiceModelSecurityTokenRequirement
requirement)
981
bool IsX509TokenRequirement(
ServiceModelSecurityTokenRequirement
requirement)
986
bool IsForConnectionValidator(
ServiceModelSecurityTokenRequirement
requirement)
993
ServiceModelSecurityTokenRequirement
requirement = tokenRequirement as
ServiceModelSecurityTokenRequirement
;
System\ServiceModel\Channels\TransportSecurityHelpers.cs (7)
370
sspiRequirement.Properties[
ServiceModelSecurityTokenRequirement
.HttpAuthenticationSchemeProperty] = authenticationScheme;
373
sspiRequirement.Properties[
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty] = channelParameters;
417
digestTokenRequirement.Properties[
ServiceModelSecurityTokenRequirement
.HttpAuthenticationSchemeProperty] = authenticationScheme;
420
digestTokenRequirement.Properties[
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty] = channelParameters;
453
certificateTokenRequirement.Properties[
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty] = channelParameters;
526
usernameRequirement.Properties[
ServiceModelSecurityTokenRequirement
.HttpAuthenticationSchemeProperty] = authenticationScheme;
529
usernameRequirement.Properties[
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty] = channelParameters;
System\ServiceModel\Security\AsymmetricSecurityProtocol.cs (3)
78
requirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = MessageDirection.Output;
87
providerRequirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = (this.Factory.ApplyConfidentiality) ? MessageDirection.Output : MessageDirection.Input;
95
authenticatorRequirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = (this.Factory.ApplyConfidentiality) ? MessageDirection.Output : MessageDirection.Input;
System\ServiceModel\Security\AsymmetricSecurityProtocolFactory.cs (2)
225
requirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = MessageDirection.Input;
256
requirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = (this.RequiresAsymmetricTokenProviderForForwardDirection) ? MessageDirection.Input : MessageDirection.Output;
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (26)
71
if (initiatorRequirement.TryGetProperty<ChannelParameterCollection>(
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty, out parameters))
73
sspiCredentialRequirement.Properties[
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty] = parameters;
97
BindingContext issuerBindingContext = initiatorRequirement.GetProperty<BindingContext>(
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty);
107
spnegoTokenProvider.AuthenticateServer = !initiatorRequirement.Properties.ContainsKey(
ServiceModelSecurityTokenRequirement
.SupportingTokenAttachmentModeProperty);
133
clientX509Requirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = MessageDirection.Output;
135
if (initiatorRequirement.TryGetProperty<ChannelParameterCollection>(
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty, out parameters))
137
clientX509Requirement.Properties[
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty] = parameters;
151
serverX509Requirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = MessageDirection.Input;
153
if (initiatorRequirement.TryGetProperty<ChannelParameterCollection>(
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty, out parameters))
155
serverX509Requirement.Properties[
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty] = parameters;
164
if (initiatorRequirement.TryGetProperty<ChannelParameterCollection>(
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty, out channelParameters))
195
BindingContext issuerBindingContext = initiatorRequirement.GetProperty<BindingContext>(
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty);
229
BindingContext issuerBindingContext = initiatorRequirement.GetProperty<BindingContext>(
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty);
230
ChannelParameterCollection channelParameters = initiatorRequirement.GetPropertyOrDefault<ChannelParameterCollection>(
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty, null);
236
sessionTokenProvider.IssuedSecurityTokenParameters = initiatorRequirement.GetProperty<SecurityTokenParameters>(
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty);
244
if (initiatorRequirement.TryGetProperty<Uri>(
ServiceModelSecurityTokenRequirement
.PrivacyNoticeUriProperty, out privacyNoticeUri))
249
if (initiatorRequirement.TryGetProperty<int>(
ServiceModelSecurityTokenRequirement
.PrivacyNoticeVersionProperty, out privacyNoticeVersion))
254
if (initiatorRequirement.TryGetProperty<EndpointAddress>(
ServiceModelSecurityTokenRequirement
.DuplexClientLocalAddressProperty, out localAddress))
278
if (initiatorRequirement.TryGetProperty<Uri>(
ServiceModelSecurityTokenRequirement
.PrivacyNoticeUriProperty, out privacyNoticeUri))
284
if (initiatorRequirement.TryGetProperty<int>(
ServiceModelSecurityTokenRequirement
.PrivacyNoticeVersionProperty, out privacyNoticeVersion))
334
if (requirement.Properties.ContainsKey(
ServiceModelSecurityTokenRequirement
.HttpAuthenticationSchemeProperty))
336
AuthenticationSchemes authScheme = (AuthenticationSchemes)requirement.Properties[
ServiceModelSecurityTokenRequirement
.HttpAuthenticationSchemeProperty];
353
if (requirement != null && requirement.Properties.ContainsKey(
ServiceModelSecurityTokenRequirement
.IssuerAddressProperty))
494
IssuedSecurityTokenParameters issuedTokenParameters = initiatorRequirement.GetProperty<IssuedSecurityTokenParameters>(
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty);
510
if (initiatorRequirement.TryGetProperty<ChannelParameterCollection>(
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty, out channelParameters))
789
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty,
System\ServiceModel\Security\InfoCardHelper.cs (7)
74
if (tokenRequirement.TryGetProperty<ChannelParameterCollection>(
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty, out channelParameter))
91
EndpointAddress target = tokenRequirement.GetProperty<EndpointAddress>(
ServiceModelSecurityTokenRequirement
.TargetAddressProperty);
92
IssuedSecurityTokenParameters issuedTokenParameters = tokenRequirement.GetProperty<IssuedSecurityTokenParameters>(
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty);
95
if (!tokenRequirement.TryGetProperty<Uri>(
ServiceModelSecurityTokenRequirement
.PrivacyNoticeUriProperty, out privacyNoticeLink))
101
if (!tokenRequirement.TryGetProperty<int>(
ServiceModelSecurityTokenRequirement
.PrivacyNoticeVersionProperty, out privacyNoticeVersion))
710
EndpointAddress target = tokenRequirement.GetProperty<EndpointAddress>(
ServiceModelSecurityTokenRequirement
.TargetAddressProperty);
711
IssuedSecurityTokenParameters issuedTokenParameters = tokenRequirement.GetProperty<IssuedSecurityTokenParameters>(
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty);
System\ServiceModel\Security\SecurityProtocol.cs (5)
191
requirement.Properties[
ServiceModelSecurityTokenRequirement
.PrivacyNoticeUriProperty] = this.factory.PrivacyNoticeUri;
195
requirement.Properties[
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty] = this.channelParameters;
198
requirement.Properties[
ServiceModelSecurityTokenRequirement
.PrivacyNoticeVersionProperty] = this.factory.PrivacyNoticeVersion;
208
requirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = MessageDirection.Output;
209
requirement.Properties[
ServiceModelSecurityTokenRequirement
.SupportingTokenAttachmentModeProperty] = attachmentMode;
System\ServiceModel\Security\SecurityProtocolFactory.cs (5)
888
requirement.Properties[
ServiceModelSecurityTokenRequirement
.ExtendedProtectionPolicy] = this.extendedProtectionPolicy;
891
requirement.Properties.Add(
ServiceModelSecurityTokenRequirement
.EndpointFilterTableProperty, this.endpointFilterTable);
901
requirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = MessageDirection.Input;
902
requirement.Properties[
ServiceModelSecurityTokenRequirement
.SupportingTokenAttachmentModeProperty] = attachmentMode;
903
requirement.Properties[
ServiceModelSecurityTokenRequirement
.ExtendedProtectionPolicy] = this.extendedProtectionPolicy;
System\ServiceModel\Security\SecuritySessionClientSettings.cs (3)
593
requirement.Properties[
ServiceModelSecurityTokenRequirement
.PrivacyNoticeUriProperty] = this.Settings.SessionProtocolFactory.PrivacyNoticeUri;
598
requirement.Properties[
ServiceModelSecurityTokenRequirement
.ChannelParametersCollectionProperty] = this.channelParameters;
600
requirement.Properties[
ServiceModelSecurityTokenRequirement
.PrivacyNoticeVersionProperty] = this.Settings.SessionProtocolFactory.PrivacyNoticeVersion;
System\ServiceModel\Security\SecuritySessionServerSettings.cs (2)
493
requirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = MessageDirection.Input;
496
requirement.Properties[
ServiceModelSecurityTokenRequirement
.EndpointFilterTableProperty] = sessionProtocolFactory.EndpointFilterTable;
System\ServiceModel\Security\SecurityUtils.cs (2)
1818
MessageSecurityTokenVersion securityVersion = (MessageSecurityTokenVersion)requirement.GetProperty<MessageSecurityTokenVersion>(
ServiceModelSecurityTokenRequirement
.MessageSecurityVersionProperty);
2217
public static SecurityBindingElement GetIssuerSecurityBindingElement(
ServiceModelSecurityTokenRequirement
requirement)
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (12)
70
IMessageFilterTable<EndpointAddress> endpointFilterTable = recipientRequirement.GetPropertyOrDefault<IMessageFilterTable<EndpointAddress>>(
ServiceModelSecurityTokenRequirement
.EndpointFilterTableProperty, null);
79
authenticator.IssuedSecurityTokenParameters = recipientRequirement.GetProperty<SecurityTokenParameters>(
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty);
81
authenticator.IssuerBindingContext = recipientRequirement.GetProperty<BindingContext>(
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty);
102
authenticator.IssuedSecurityTokenParameters = recipientRequirement.GetProperty<SecurityTokenParameters>(
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty);
104
authenticator.IssuerBindingContext = recipientRequirement.GetProperty<BindingContext>(
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty);
138
recipientRequirement.TryGetProperty<ExtendedProtectionPolicy>(
ServiceModelSecurityTokenRequirement
.ExtendedProtectionPolicy, out extendedProtectionPolicy);
146
authenticator.IssuedSecurityTokenParameters = recipientRequirement.GetProperty<SecurityTokenParameters>(
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty);
148
authenticator.IssuerBindingContext = recipientRequirement.GetProperty<BindingContext>(
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty);
215
authenticator.IssuedSecurityTokenParameters = recipientRequirement.GetProperty<SecurityTokenParameters>(
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty);
217
authenticator.IssuerBindingContext = recipientRequirement.GetProperty<BindingContext>(
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty);
316
return (requirement != null && requirement.Properties.ContainsKey(
ServiceModelSecurityTokenRequirement
.IssuerAddressProperty));
417
bool authenticationSchemeIdentified = recipientRequirement.TryGetProperty<AuthenticationSchemes>(
ServiceModelSecurityTokenRequirement
.HttpAuthenticationSchemeProperty, out authenticationScheme);
System\ServiceModel\Security\SymmetricSecurityProtocol.cs (1)
69
tokenRequirement.Properties[
ServiceModelSecurityTokenRequirement
.MessageDirectionProperty] = MessageDirection.Output;
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (6)
965
ServiceModelSecurityTokenRequirement
serviceModelSecurityTokenRequirement = requirement as
ServiceModelSecurityTokenRequirement
;
972
requirement.Properties[
ServiceModelSecurityTokenRequirement
.DefaultMessageSecurityVersionProperty] = this.DefaultMessageSecurityVersion;
979
requirement.Properties[
ServiceModelSecurityTokenRequirement
.IssuerAddressProperty] = this.IssuerAddress;
982
requirement.Properties[
ServiceModelSecurityTokenRequirement
.IssuerBindingProperty] = this.IssuerBinding;
984
requirement.Properties[
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty] = this.Clone();
System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (4)
201
requirement.Properties[
ServiceModelSecurityTokenRequirement
.SupportSecurityContextCancellationProperty] = this.RequireCancellation;
202
requirement.Properties[
ServiceModelSecurityTokenRequirement
.SecureConversationSecurityBindingElementProperty] = this.BootstrapSecurityBindingElement;
203
requirement.Properties[
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty] = this.IssuerBindingContext.Clone();
204
requirement.Properties[
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty] = this.Clone();
System\ServiceModel\Security\Tokens\SslSecurityTokenParameters.cs (3)
119
requirement.Properties[
ServiceModelSecurityTokenRequirement
.SupportSecurityContextCancellationProperty] = this.RequireCancellation;
122
requirement.Properties[
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty] = this.IssuerBindingContext.Clone();
124
requirement.Properties[
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty] = this.Clone();
System\ServiceModel\Security\Tokens\SspiSecurityTokenParameters.cs (3)
99
requirement.Properties[
ServiceModelSecurityTokenRequirement
.SupportSecurityContextCancellationProperty] = this.RequireCancellation;
102
requirement.Properties[
ServiceModelSecurityTokenRequirement
.IssuerBindingContextProperty] = this.IssuerBindingContext.Clone();
104
requirement.Properties[
ServiceModelSecurityTokenRequirement
.IssuedSecurityTokenParametersProperty] = this.Clone();