109 references to SecurityTokenAttachmentMode
System.ServiceModel (109)
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
63
SupportingTokenAuthenticatorSpecification spec = new SupportingTokenAuthenticatorSpecification(this.sessionTokenAuthenticator, this.sessionTokenResolver,
SecurityTokenAttachmentMode
.Endorsing, this.Factory.SecurityTokenParameters);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (10)
663
case
SecurityTokenAttachmentMode
.Endorsing:
674
case
SecurityTokenAttachmentMode
.Signed:
681
case
SecurityTokenAttachmentMode
.SignedEncrypted:
692
case
SecurityTokenAttachmentMode
.SignedEndorsing:
825
case
SecurityTokenAttachmentMode
.Endorsing:
828
case
SecurityTokenAttachmentMode
.Signed:
831
case
SecurityTokenAttachmentMode
.SignedEndorsing:
835
case
SecurityTokenAttachmentMode
.SignedEncrypted:
849
(spec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing || spec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.SignedEndorsing))
System\ServiceModel\Security\SecurityMessageProperty.cs (5)
292
SecurityTokenAttachmentMode
attachmentMode = this.incomingSupportingTokens[i].SecurityTokenAttachmentMode;
295
if (attachmentMode ==
SecurityTokenAttachmentMode
.Endorsing
296
|| attachmentMode ==
SecurityTokenAttachmentMode
.Signed
297
|| attachmentMode ==
SecurityTokenAttachmentMode
.SignedEncrypted
298
|| attachmentMode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
System\ServiceModel\Security\SecurityProtocol.cs (22)
203
InitiatorServiceModelSecurityTokenRequirement CreateInitiatorSecurityTokenRequirement(SecurityTokenParameters parameters,
SecurityTokenAttachmentMode
attachmentMode)
217
SecurityTokenRequirement requirement = this.CreateInitiatorSecurityTokenRequirement(supportingTokenParameters.Endorsing[i],
SecurityTokenAttachmentMode
.Endorsing);
229
SupportingTokenProviderSpecification providerSpec = new SupportingTokenProviderSpecification(provider,
SecurityTokenAttachmentMode
.Endorsing, supportingTokenParameters.Endorsing[i]);
242
SecurityTokenRequirement requirement = this.CreateInitiatorSecurityTokenRequirement(supportingTokenParameters.SignedEndorsing[i],
SecurityTokenAttachmentMode
.SignedEndorsing);
254
SupportingTokenProviderSpecification providerSpec = new SupportingTokenProviderSpecification(provider,
SecurityTokenAttachmentMode
.SignedEndorsing, supportingTokenParameters.SignedEndorsing[i]);
267
SecurityTokenRequirement requirement = this.CreateInitiatorSecurityTokenRequirement(supportingTokenParameters.SignedEncrypted[i],
SecurityTokenAttachmentMode
.SignedEncrypted);
279
SupportingTokenProviderSpecification providerSpec = new SupportingTokenProviderSpecification(provider,
SecurityTokenAttachmentMode
.SignedEncrypted, supportingTokenParameters.SignedEncrypted[i]);
292
SecurityTokenRequirement requirement = this.CreateInitiatorSecurityTokenRequirement(supportingTokenParameters.Signed[i],
SecurityTokenAttachmentMode
.Signed);
304
SupportingTokenProviderSpecification providerSpec = new SupportingTokenProviderSpecification(provider,
SecurityTokenAttachmentMode
.Signed, supportingTokenParameters.Signed[i]);
343
if (spec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing || spec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
416
if (tokenProviderSpec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing || tokenProviderSpec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
503
void AddSupportingTokenSpecification(SecurityMessageProperty security, IList<SecurityToken> tokens,
SecurityTokenAttachmentMode
attachmentMode, IDictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> tokenPoliciesMapping)
517
AddSupportingTokenSpecification(security, basicTokens,
SecurityTokenAttachmentMode
.SignedEncrypted, tokenPoliciesMapping);
518
AddSupportingTokenSpecification(security, endorsingTokens,
SecurityTokenAttachmentMode
.Endorsing, tokenPoliciesMapping);
519
AddSupportingTokenSpecification(security, signedEndorsingTokens,
SecurityTokenAttachmentMode
.SignedEndorsing, tokenPoliciesMapping);
520
AddSupportingTokenSpecification(security, signedTokens,
SecurityTokenAttachmentMode
.Signed, tokenPoliciesMapping);
685
case
SecurityTokenAttachmentMode
.Signed:
688
case
SecurityTokenAttachmentMode
.Endorsing:
691
case
SecurityTokenAttachmentMode
.SignedEncrypted:
694
case
SecurityTokenAttachmentMode
.SignedEndorsing:
System\ServiceModel\Security\SecurityProtocolFactory.cs (27)
843
if (spec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing ||
844
spec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
851
SecurityTokenAttachmentMode
mode = spec.SecurityTokenAttachmentMode;
852
if (mode ==
SecurityTokenAttachmentMode
.SignedEncrypted
853
|| mode ==
SecurityTokenAttachmentMode
.Signed
854
|| mode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
857
if (mode ==
SecurityTokenAttachmentMode
.SignedEncrypted)
862
if (mode ==
SecurityTokenAttachmentMode
.Endorsing || mode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
896
RecipientServiceModelSecurityTokenRequirement CreateRecipientSecurityTokenRequirement(SecurityTokenParameters parameters,
SecurityTokenAttachmentMode
attachmentMode)
911
SecurityTokenRequirement requirement = this.CreateRecipientSecurityTokenRequirement(supportingTokenParameters.Endorsing[i],
SecurityTokenAttachmentMode
.Endorsing);
916
SupportingTokenAuthenticatorSpecification authenticatorSpec = new SupportingTokenAuthenticatorSpecification(authenticator, resolver,
SecurityTokenAttachmentMode
.Endorsing, supportingTokenParameters.Endorsing[i], isOptional);
929
SecurityTokenRequirement requirement = this.CreateRecipientSecurityTokenRequirement(supportingTokenParameters.SignedEndorsing[i],
SecurityTokenAttachmentMode
.SignedEndorsing);
934
SupportingTokenAuthenticatorSpecification authenticatorSpec = new SupportingTokenAuthenticatorSpecification(authenticator, resolver,
SecurityTokenAttachmentMode
.SignedEndorsing, supportingTokenParameters.SignedEndorsing[i], isOptional);
947
SecurityTokenRequirement requirement = this.CreateRecipientSecurityTokenRequirement(supportingTokenParameters.SignedEncrypted[i],
SecurityTokenAttachmentMode
.SignedEncrypted);
952
SupportingTokenAuthenticatorSpecification authenticatorSpec = new SupportingTokenAuthenticatorSpecification(authenticator, resolver,
SecurityTokenAttachmentMode
.SignedEncrypted, supportingTokenParameters.SignedEncrypted[i], isOptional);
965
SecurityTokenRequirement requirement = this.CreateRecipientSecurityTokenRequirement(supportingTokenParameters.Signed[i],
SecurityTokenAttachmentMode
.Signed);
970
SupportingTokenAuthenticatorSpecification authenticatorSpec = new SupportingTokenAuthenticatorSpecification(authenticator, resolver,
SecurityTokenAttachmentMode
.Signed, supportingTokenParameters.Signed[i], isOptional);
1035
if (tokenAuthenticatorSpec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing
1036
|| tokenAuthenticatorSpec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
1043
SecurityTokenAttachmentMode
mode = tokenAuthenticatorSpec.SecurityTokenAttachmentMode;
1044
if (mode ==
SecurityTokenAttachmentMode
.SignedEncrypted
1045
|| mode ==
SecurityTokenAttachmentMode
.Signed
1046
|| mode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
1049
if (mode ==
SecurityTokenAttachmentMode
.SignedEncrypted)
1054
if (mode ==
SecurityTokenAttachmentMode
.Endorsing || mode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (6)
748
if (supportingTokenProperty.IncomingSupportingTokens[i].SecurityTokenAttachmentMode !=
SecurityTokenAttachmentMode
.Endorsing
749
&& supportingTokenProperty.IncomingSupportingTokens[i].SecurityTokenAttachmentMode !=
SecurityTokenAttachmentMode
.SignedEndorsing)
855
if (security.IncomingSupportingTokens[i].SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing
856
|| security.IncomingSupportingTokens[i].SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.SignedEncrypted
857
|| security.IncomingSupportingTokens[i].SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.SignedEndorsing)
981
if (securityProperty.IncomingSupportingTokens[i].SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing)
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
776
supportingTokenProperty.OutgoingSupportingTokens.Add(new SupportingTokenSpecification(currentSessionToken, EmptyReadOnlyCollection<IAuthorizationPolicy>.Instance,
SecurityTokenAttachmentMode
.Endorsing, this.IssuedSecurityTokenParameters));
System\ServiceModel\Security\SecuritySessionServerSettings.cs (1)
1375
if (securityProperty.IncomingSupportingTokens[i].SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing)
System\ServiceModel\Security\SecurityTokenAttachmentMode.cs (12)
19
internal static bool IsDefined(
SecurityTokenAttachmentMode
value)
21
return value ==
SecurityTokenAttachmentMode
.Endorsing
22
|| value ==
SecurityTokenAttachmentMode
.Signed
23
|| value ==
SecurityTokenAttachmentMode
.SignedEncrypted
24
|| value ==
SecurityTokenAttachmentMode
.SignedEndorsing;
27
internal static void Validate(
SecurityTokenAttachmentMode
value)
32
typeof(
SecurityTokenAttachmentMode
)));
36
internal static void Categorize(
SecurityTokenAttachmentMode
value,
44
case
SecurityTokenAttachmentMode
.Endorsing:
49
case
SecurityTokenAttachmentMode
.Signed:
54
case
SecurityTokenAttachmentMode
.SignedEncrypted:
59
case
SecurityTokenAttachmentMode
.SignedEndorsing:
System\ServiceModel\Security\SendSecurityHeader.cs (4)
980
protected bool ShouldUseStrTransformForToken(SecurityToken securityToken, int position,
SecurityTokenAttachmentMode
mode, out SecurityKeyIdentifierClause keyIdentifierClause)
987
case
SecurityTokenAttachmentMode
.SignedEndorsing:
990
case
SecurityTokenAttachmentMode
.Signed:
993
case
SecurityTokenAttachmentMode
.SignedEncrypted:
System\ServiceModel\Security\SupportingTokenAuthenticatorSpecification.cs (4)
13
SecurityTokenAttachmentMode
tokenAttachmentMode;
19
public SupportingTokenAuthenticatorSpecification(SecurityTokenAuthenticator tokenAuthenticator, SecurityTokenResolver securityTokenResolver,
SecurityTokenAttachmentMode
attachmentMode, SecurityTokenParameters tokenParameters)
24
internal SupportingTokenAuthenticatorSpecification(SecurityTokenAuthenticator tokenAuthenticator, SecurityTokenResolver securityTokenResolver,
SecurityTokenAttachmentMode
attachmentMode, SecurityTokenParameters tokenParameters, bool isTokenOptional)
54
public
SecurityTokenAttachmentMode
SecurityTokenAttachmentMode
System\ServiceModel\Security\SupportingTokenProviderSpecification.cs (3)
13
SecurityTokenAttachmentMode
tokenAttachmentMode;
17
public SupportingTokenProviderSpecification(SecurityTokenProvider tokenProvider,
SecurityTokenAttachmentMode
attachmentMode, SecurityTokenParameters tokenParameters)
38
public
SecurityTokenAttachmentMode
SecurityTokenAttachmentMode
System\ServiceModel\Security\SupportingTokenSpecification.cs (4)
15
SecurityTokenAttachmentMode
tokenAttachmentMode;
18
public SupportingTokenSpecification(SecurityToken token, ReadOnlyCollection<IAuthorizationPolicy> tokenPolicies,
SecurityTokenAttachmentMode
attachmentMode)
22
public SupportingTokenSpecification(SecurityToken token, ReadOnlyCollection<IAuthorizationPolicy> tokenPolicies,
SecurityTokenAttachmentMode
attachmentMode, SecurityTokenParameters tokenParameters)
30
public
SecurityTokenAttachmentMode
SecurityTokenAttachmentMode
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
918
SupportingTokenSpecification rsaSpec = new SupportingTokenSpecification(negotiationState.RsaSecurityToken, EmptyReadOnlyCollection<IAuthorizationPolicy>.Instance,
SecurityTokenAttachmentMode
.Endorsing, rsaParameters);
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (5)
91
void AddSignatureReference(SecurityToken token, int position,
SecurityTokenAttachmentMode
mode)
170
SecurityTokenAttachmentMode
.SignedEncrypted,
203
void AddSignatureReference(SecurityToken[] tokens,
SecurityTokenAttachmentMode
mode)
525
AddSignatureReference(signedEndorsingTokens,
SecurityTokenAttachmentMode
.SignedEndorsing);
526
AddSignatureReference(signedTokens,
SecurityTokenAttachmentMode
.Signed);
System\ServiceModel\Security\WSTrustServiceContract.cs (2)
111
(tokenSpec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing ||
112
tokenSpec.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.SignedEndorsing))
System\ServiceModel\ServiceAuthenticationManager.cs (1)
128
if ((tokenSpecification.SecurityTokenAttachmentMode ==
SecurityTokenAttachmentMode
.Endorsing) &&