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