58 references to SecurityTokenAttachmentMode
System.ServiceModel.Primitives (58)
System\ServiceModel\Security\ReceiveSecurityHeader.cs (6)
412case SecurityTokenAttachmentMode.Endorsing: 415case SecurityTokenAttachmentMode.Signed: 417case SecurityTokenAttachmentMode.SignedEndorsing: 420case SecurityTokenAttachmentMode.SignedEncrypted: 433(spec.SecurityTokenAttachmentMode == SecurityTokenAttachmentMode.Endorsing || spec.SecurityTokenAttachmentMode == SecurityTokenAttachmentMode.SignedEndorsing))
System\ServiceModel\Security\SecurityMessageProperty.cs (5)
281SecurityTokenAttachmentMode attachmentMode = _incomingSupportingTokens[i].SecurityTokenAttachmentMode; 284if (attachmentMode == SecurityTokenAttachmentMode.Endorsing 285|| attachmentMode == SecurityTokenAttachmentMode.Signed 286|| attachmentMode == SecurityTokenAttachmentMode.SignedEncrypted 287|| attachmentMode == SecurityTokenAttachmentMode.SignedEndorsing)
System\ServiceModel\Security\SecurityProtocol.cs (22)
133private InitiatorServiceModelSecurityTokenRequirement CreateInitiatorSecurityTokenRequirement(SecurityTokenParameters parameters, SecurityTokenAttachmentMode attachmentMode) 147SecurityTokenRequirement requirement = CreateInitiatorSecurityTokenRequirement(supportingTokenParameters.Endorsing[i], SecurityTokenAttachmentMode.Endorsing); 159SupportingTokenProviderSpecification providerSpec = new SupportingTokenProviderSpecification(provider, SecurityTokenAttachmentMode.Endorsing, supportingTokenParameters.Endorsing[i]); 173SecurityTokenRequirement requirement = CreateInitiatorSecurityTokenRequirement(supportingTokenParameters.SignedEndorsing[i], SecurityTokenAttachmentMode.SignedEndorsing); 185SupportingTokenProviderSpecification providerSpec = new SupportingTokenProviderSpecification(provider, SecurityTokenAttachmentMode.SignedEndorsing, supportingTokenParameters.SignedEndorsing[i]); 199SecurityTokenRequirement requirement = CreateInitiatorSecurityTokenRequirement(supportingTokenParameters.SignedEncrypted[i], SecurityTokenAttachmentMode.SignedEncrypted); 211SupportingTokenProviderSpecification providerSpec = new SupportingTokenProviderSpecification(provider, SecurityTokenAttachmentMode.SignedEncrypted, supportingTokenParameters.SignedEncrypted[i]); 225SecurityTokenRequirement requirement = CreateInitiatorSecurityTokenRequirement(supportingTokenParameters.Signed[i], SecurityTokenAttachmentMode.Signed); 237SupportingTokenProviderSpecification providerSpec = new SupportingTokenProviderSpecification(provider, SecurityTokenAttachmentMode.Signed, supportingTokenParameters.Signed[i]); 276if (spec.SecurityTokenAttachmentMode == SecurityTokenAttachmentMode.Endorsing || spec.SecurityTokenAttachmentMode == SecurityTokenAttachmentMode.SignedEndorsing) 341if (tokenProviderSpec.SecurityTokenAttachmentMode == SecurityTokenAttachmentMode.Endorsing || tokenProviderSpec.SecurityTokenAttachmentMode == SecurityTokenAttachmentMode.SignedEndorsing) 420private void AddSupportingTokenSpecification(SecurityMessageProperty security, IList<SecurityToken> tokens, SecurityTokenAttachmentMode attachmentMode, IDictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> tokenPoliciesMapping) 435AddSupportingTokenSpecification(security, basicTokens, SecurityTokenAttachmentMode.SignedEncrypted, tokenPoliciesMapping); 436AddSupportingTokenSpecification(security, endorsingTokens, SecurityTokenAttachmentMode.Endorsing, tokenPoliciesMapping); 437AddSupportingTokenSpecification(security, signedEndorsingTokens, SecurityTokenAttachmentMode.SignedEndorsing, tokenPoliciesMapping); 438AddSupportingTokenSpecification(security, signedTokens, SecurityTokenAttachmentMode.Signed, tokenPoliciesMapping); 567case SecurityTokenAttachmentMode.Signed: 570case SecurityTokenAttachmentMode.Endorsing: 573case SecurityTokenAttachmentMode.SignedEncrypted: 576case SecurityTokenAttachmentMode.SignedEndorsing:
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
678supportingTokenProperty.OutgoingSupportingTokens.Add(new SupportingTokenSpecification(currentSessionToken, EmptyReadOnlyCollection<IAuthorizationPolicy>.Instance, SecurityTokenAttachmentMode.Endorsing, IssuedSecurityTokenParameters));
System\ServiceModel\Security\SecurityTokenAttachmentMode.cs (12)
20internal static bool IsDefined(SecurityTokenAttachmentMode value) 22return value == SecurityTokenAttachmentMode.Endorsing 23|| value == SecurityTokenAttachmentMode.Signed 24|| value == SecurityTokenAttachmentMode.SignedEncrypted 25|| value == SecurityTokenAttachmentMode.SignedEndorsing; 28internal static void Validate(SecurityTokenAttachmentMode value) 33typeof(SecurityTokenAttachmentMode))); 37internal static void Categorize(SecurityTokenAttachmentMode value, 44case SecurityTokenAttachmentMode.Endorsing: 49case SecurityTokenAttachmentMode.Signed: 54case SecurityTokenAttachmentMode.SignedEncrypted: 59case SecurityTokenAttachmentMode.SignedEndorsing:
System\ServiceModel\Security\SendSecurityHeader.cs (1)
179protected bool ShouldUseStrTransformForToken(SecurityToken securityToken, int position, SecurityTokenAttachmentMode mode, out SecurityKeyIdentifierClause keyIdentifierClause)
System\ServiceModel\Security\SupportingTokenAuthenticatorSpecification.cs (3)
15public SupportingTokenAuthenticatorSpecification(SecurityTokenAuthenticator tokenAuthenticator, SecurityTokenResolver securityTokenResolver, SecurityTokenAttachmentMode attachmentMode, SecurityTokenParameters tokenParameters) 20internal SupportingTokenAuthenticatorSpecification(SecurityTokenAuthenticator tokenAuthenticator, SecurityTokenResolver securityTokenResolver, SecurityTokenAttachmentMode attachmentMode, SecurityTokenParameters tokenParameters, bool isTokenOptional) 34public SecurityTokenAttachmentMode SecurityTokenAttachmentMode { get; }
System\ServiceModel\Security\SupportingTokenProviderSpecification.cs (2)
15public SupportingTokenProviderSpecification(SecurityTokenProvider tokenProvider, SecurityTokenAttachmentMode attachmentMode, SecurityTokenParameters tokenParameters) 25public SecurityTokenAttachmentMode SecurityTokenAttachmentMode { get; }
System\ServiceModel\Security\SupportingTokenSpecification.cs (3)
17public SupportingTokenSpecification(SecurityToken token, ReadOnlyCollection<IAuthorizationPolicy> tokenPolicies, SecurityTokenAttachmentMode attachmentMode) 21public SupportingTokenSpecification(SecurityToken token, ReadOnlyCollection<IAuthorizationPolicy> tokenPolicies, SecurityTokenAttachmentMode attachmentMode, SecurityTokenParameters tokenParameters) 29public SecurityTokenAttachmentMode SecurityTokenAttachmentMode { get; }
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (3)
60private void AddSignatureReference(SecurityToken token, int position, SecurityTokenAttachmentMode mode) 96SecurityTokenAttachmentMode.SignedEncrypted, 122private void AddSignatureReference(SecurityToken[] tokens, SecurityTokenAttachmentMode mode)