72 references to SecurityTokenReferenceStyle
System.ServiceModel.Primitives (72)
System\ServiceModel\Security\ReceiveSecurityHeader.cs (7)
363_universalTokenResolver.Add(_outOfBandPrimaryToken, SecurityTokenReferenceStyle.External, _primaryTokenParameters); 364_primaryTokenResolver.Add(_outOfBandPrimaryToken, SecurityTokenReferenceStyle.External, _primaryTokenParameters); 370_universalTokenResolver.Add(_outOfBandPrimaryTokenCollection[i], SecurityTokenReferenceStyle.External, _primaryTokenParameters); 371_primaryTokenResolver.Add(_outOfBandPrimaryTokenCollection[i], SecurityTokenReferenceStyle.External, _primaryTokenParameters); 660_universalTokenResolver.Add(token, SecurityTokenReferenceStyle.Internal, _primaryTokenParameters); 661_primaryTokenResolver.Add(token, SecurityTokenReferenceStyle.Internal, _primaryTokenParameters); 732_universalTokenResolver.Add(token, SecurityTokenReferenceStyle.Internal, supportingTokenSpec.TokenParameters);
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (10)
39Add(token, SecurityTokenReferenceStyle.Internal, null); 42public void Add(SecurityToken token, SecurityTokenReferenceStyle allowedReferenceStyle, SecurityTokenParameters tokenParameters) 49if ((allowedReferenceStyle == SecurityTokenReferenceStyle.External) && (tokenParameters == null)) 77if (ExpectedWrapperTokenParameters.MatchesKeyIdentifierClause(ExpectedWrapper, keyIdentifier[i], SecurityTokenReferenceStyle.External)) 151if (matchOnlyExternal && _tokens[i].AllowedReferenceStyle != SecurityTokenReferenceStyle.External) 165if (_tokens[i].AllowedReferenceStyle == SecurityTokenReferenceStyle.Internal && MatchDirectReference(token, keyIdentifierClause)) 219Add(resolvedToken, SecurityTokenReferenceStyle.Internal, null); 286private SecurityTokenReferenceStyle _allowedReferenceStyle; 288public SecurityTokenEntry(SecurityToken token, SecurityTokenParameters tokenParameters, SecurityTokenReferenceStyle allowedReferenceStyle) 299public SecurityTokenReferenceStyle AllowedReferenceStyle
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
584rst.CloseTarget = Settings.IssuedSecurityTokenParameters.CreateKeyIdentifierClause(tokenToClose, SecurityTokenReferenceStyle.External); 1347SecurityTokenReferenceStyle.External);
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
674rst.RenewTarget = IssuedSecurityTokenParameters.CreateKeyIdentifierClause(currentSessionToken, SecurityTokenReferenceStyle.External);
System\ServiceModel\Security\SecurityStandardsManager.cs (2)
118internal bool TryCreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle, out SecurityKeyIdentifierClause securityKeyIdentifierClause) 124internal SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle)
System\ServiceModel\Security\SendSecurityHeader.cs (4)
525protected internal SecurityTokenReferenceStyle GetTokenReferenceStyle(SecurityTokenParameters parameters) 527return (ShouldSerializeToken(parameters, MessageDirection)) ? SecurityTokenReferenceStyle.Internal : SecurityTokenReferenceStyle.External; 538SecurityTokenReferenceStyle sourceSigningKeyReferenceStyle = GetTokenReferenceStyle(SigningTokenParameters);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
140internal protected override SecurityKeyIdentifierClause CreateKeyIdentifierClause(SecurityToken token, SecurityTokenReferenceStyle referenceStyle)
System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (1)
133internal protected override SecurityKeyIdentifierClause CreateKeyIdentifierClause(SecurityToken token, SecurityTokenReferenceStyle referenceStyle)
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (13)
69internal protected abstract SecurityKeyIdentifierClause CreateKeyIdentifierClause(SecurityToken token, SecurityTokenReferenceStyle referenceStyle); 71internal SecurityKeyIdentifierClause CreateKeyIdentifierClause<TExternalClause, TInternalClause>(SecurityToken token, SecurityTokenReferenceStyle referenceStyle) 87case SecurityTokenReferenceStyle.External: 90case SecurityTokenReferenceStyle.Internal: 98internal SecurityKeyIdentifierClause CreateGenericXmlTokenKeyIdentifierClause(SecurityToken token, SecurityTokenReferenceStyle referenceStyle) 103if (referenceStyle == SecurityTokenReferenceStyle.Internal && xmlToken.InternalTokenReference != null) 108if (referenceStyle == SecurityTokenReferenceStyle.External && xmlToken.ExternalTokenReference != null) 117internal protected virtual bool MatchesKeyIdentifierClause(SecurityToken token, SecurityKeyIdentifierClause keyIdentifierClause, SecurityTokenReferenceStyle referenceStyle) 136case SecurityTokenReferenceStyle.External: 147case SecurityTokenReferenceStyle.Internal: 157internal bool MatchesGenericXmlTokenKeyIdentifierClause(SecurityToken token, SecurityKeyIdentifierClause keyIdentifierClause, SecurityTokenReferenceStyle referenceStyle) 172else if (referenceStyle == SecurityTokenReferenceStyle.External && xmlToken.ExternalTokenReference != null) 176else if (referenceStyle == SecurityTokenReferenceStyle.Internal)
System\ServiceModel\Security\Tokens\SecurityTokenReferenceStyle.cs (5)
18public static bool IsDefined(SecurityTokenReferenceStyle value) 20return (value == SecurityTokenReferenceStyle.External || value == SecurityTokenReferenceStyle.Internal); 23public static void Validate(SecurityTokenReferenceStyle value) 28typeof(SecurityTokenReferenceStyle)));
System\ServiceModel\Security\Tokens\UserNameSecurityTokenParameters.cs (1)
35internal protected override SecurityKeyIdentifierClause CreateKeyIdentifierClause(SecurityToken token, SecurityTokenReferenceStyle referenceStyle)
System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (2)
74internal protected override SecurityKeyIdentifierClause CreateKeyIdentifierClause(SecurityToken token, SecurityTokenReferenceStyle referenceStyle) 82if (referenceStyle == SecurityTokenReferenceStyle.External)
System\ServiceModel\Security\WSSecureConversation.cs (6)
87SecurityTokenReferenceStyle tokenReferenceStyle) 93case SecurityTokenReferenceStyle.Internal: 95case SecurityTokenReferenceStyle.External: 320SecurityTokenReferenceStyle tokenReferenceStyle) 327case SecurityTokenReferenceStyle.Internal: 329case SecurityTokenReferenceStyle.External:
System\ServiceModel\Security\WSSecurityJan2004.cs (7)
99SecurityTokenReferenceStyle tokenReferenceStyle) 105case SecurityTokenReferenceStyle.Internal: 107case SecurityTokenReferenceStyle.External: 212SecurityTokenReferenceStyle tokenReferenceStyle) 256SecurityTokenReferenceStyle tokenReferenceStyle) 262case SecurityTokenReferenceStyle.Internal: 264case SecurityTokenReferenceStyle.External:
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (3)
375public virtual bool TryCreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle, out SecurityKeyIdentifierClause securityKeyIdentifierClause) 396public virtual SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(XmlElement element, SecurityTokenReferenceStyle tokenReferenceStyle) 498public abstract SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(XmlElement issuedTokenXml, SecurityTokenReferenceStyle tokenReferenceStyle);
System\ServiceModel\Security\WSTrust.cs (5)
95SecurityTokenReferenceStyle tokenReferenceStyle) 101case SecurityTokenReferenceStyle.Internal: 103case SecurityTokenReferenceStyle.External: 830requestedAttachedReference = _standardsManager.CreateKeyIdentifierClauseFromTokenXml(issuedTokenXml, SecurityTokenReferenceStyle.Internal); 835requestedUnattachedReference = _standardsManager.CreateKeyIdentifierClauseFromTokenXml(issuedTokenXml, SecurityTokenReferenceStyle.External);
System\ServiceModel\Security\WSTrustFeb2005.cs (2)
126StandardsManager.TryCreateKeyIdentifierClauseFromTokenXml(issuedTokenXml, SecurityTokenReferenceStyle.Internal, out requestedAttachedReference); 130StandardsManager.TryCreateKeyIdentifierClauseFromTokenXml(issuedTokenXml, SecurityTokenReferenceStyle.External, out requestedUnattachedReference);