System\IdentityModel\Selectors\SecurityTokenProvider.cs (25)
26public SecurityToken GetToken(TimeSpan timeout)
28SecurityToken token = this.GetTokenCore(timeout);
41public SecurityToken EndGetToken(IAsyncResult result)
47SecurityToken token = this.EndGetTokenCore(result);
55public SecurityToken RenewToken(TimeSpan timeout, SecurityToken tokenToBeRenewed)
61SecurityToken token = this.RenewTokenCore(timeout, tokenToBeRenewed);
69public IAsyncResult BeginRenewToken(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state)
78public SecurityToken EndRenewToken(IAsyncResult result)
84SecurityToken token = this.EndRenewTokenCore(result);
92public void CancelToken(TimeSpan timeout, SecurityToken token)
101public IAsyncResult BeginCancelToken(TimeSpan timeout, SecurityToken token, AsyncCallback callback, object state)
120protected abstract SecurityToken GetTokenCore(TimeSpan timeout);
122protected virtual SecurityToken RenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed)
127protected virtual void CancelTokenCore(TimeSpan timeout, SecurityToken token)
134SecurityToken token = this.GetToken(timeout);
138protected virtual SecurityToken EndGetTokenCore(IAsyncResult result)
143protected virtual IAsyncResult BeginRenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state)
145SecurityToken token = this.RenewTokenCore(timeout, tokenToBeRenewed);
149protected virtual SecurityToken EndRenewTokenCore(IAsyncResult result)
154protected virtual IAsyncResult BeginCancelTokenCore(TimeSpan timeout, SecurityToken token, AsyncCallback callback, object state)
167SecurityToken token;
172public SecurityTokenAsyncResult(SecurityToken token, AsyncCallback callback, object state)
229public static SecurityToken End(IAsyncResult result)
System\ServiceModel\Security\Tokens\WrappedKeySecurityToken.cs (6)
26SecurityToken wrappingToken;
40public WrappedKeySecurityToken(string id, byte[] keyToWrap, string wrappingAlgorithm, SecurityToken wrappingToken, SecurityKeyIdentifier wrappingTokenReference)
45internal WrappedKeySecurityToken(string id, byte[] keyToWrap, string wrappingAlgorithm, XmlDictionaryString wrappingAlgorithmDictionaryString, SecurityToken wrappingToken, SecurityKeyIdentifier wrappingTokenReference)
71internal WrappedKeySecurityToken(string id, byte[] keyToWrap, string wrappingAlgorithm, SecurityToken wrappingToken, SecurityKeyIdentifier wrappingTokenReference, byte[] wrappedKey, SecurityKey wrappingSecurityKey)
76WrappedKeySecurityToken(string id, byte[] keyToWrap, string wrappingAlgorithm, XmlDictionaryString wrappingAlgorithmDictionaryString, SecurityToken wrappingToken, SecurityKeyIdentifier wrappingTokenReference, byte[] wrappedKey, SecurityKey wrappingSecurityKey)
153public SecurityToken WrappingToken
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (32)
38internal static void TraceRemovedCachedServiceToken<T>(IssuanceTokenProviderBase<T> provider, SecurityToken serviceToken)
47internal static void TraceUsingCachedServiceToken<T>(IssuanceTokenProviderBase<T> provider, SecurityToken serviceToken, EndpointAddress target)
71internal static void TraceEndSecurityNegotiation<T>(IssuanceTokenProviderBase<T> provider, SecurityToken serviceToken, EndpointAddress target)
332internal static void TraceCloseMessageSent(SecurityToken sessionToken, EndpointAddress remoteTarget)
338internal static void TraceCloseResponseMessageSent(SecurityToken sessionToken, EndpointAddress remoteTarget)
344internal static void TraceCloseMessageReceived(SecurityToken sessionToken, EndpointAddress remoteTarget)
350internal static void TraceSessionKeyRenewalFault(SecurityToken sessionToken, EndpointAddress remoteTarget)
356internal static void TraceRemoteSessionAbortedFault(SecurityToken sessionToken, EndpointAddress remoteTarget)
362internal static void TraceCloseResponseReceived(SecurityToken sessionToken, EndpointAddress remoteTarget)
368internal static void TracePreviousSessionKeyDiscarded(SecurityToken previousSessionToken, SecurityToken currentSessionToken, EndpointAddress remoteAddress)
374internal static void TraceSessionKeyRenewed(SecurityToken newSessionToken, SecurityToken currentSessionToken, EndpointAddress remoteAddress)
485internal static void TraceBeginSecuritySessionOperation(SecuritySessionOperation operation, EndpointAddress target, SecurityToken currentToken)
491internal static void TraceSecuritySessionOperationSuccess(SecuritySessionOperation operation, EndpointAddress target, SecurityToken currentToken, SecurityToken issuedToken)
497internal static void TraceSecuritySessionOperationFailure(SecuritySessionOperation operation, EndpointAddress target, SecurityToken currentToken, Exception e)
532static void WritePossibleGenericXmlToken(XmlWriter writer, string startElement, SecurityToken token)
551static void WriteGenericXmlToken(XmlWriter xml, SecurityToken sessiontoken)
659SecurityToken currentToken;
660SecurityToken issuedToken;
664public SessionRequestorTraceRecord(SecuritySessionOperation operation, SecurityToken currentToken, SecurityToken issuedToken, EndpointAddress target)
673public SessionRequestorTraceRecord(SecuritySessionOperation operation, SecurityToken currentToken, Exception e, EndpointAddress target)
780SecurityToken currentSessionToken;
781SecurityToken previousSessionToken;
784public ClientSessionTraceRecord(SecurityToken currentSessionToken, SecurityToken previousSessionToken, EndpointAddress remoteAddress)
1235SecurityToken serviceToken;
1238public IssuanceProviderTraceRecord(IssuanceTokenProviderBase<T> provider, SecurityToken serviceToken)
1243: this(provider, (SecurityToken)null, target)
1246public IssuanceProviderTraceRecord(IssuanceTokenProviderBase<T> provider, SecurityToken serviceToken, EndpointAddress target)
System\ServiceModel\Security\AsymmetricSecurityProtocol.cs (25)
147SecurityToken encryptingToken;
148SecurityToken signingToken;
186SecurityToken encryptingToken;
187SecurityToken signingToken;
195void SetUpDelayedSecurityExecution(ref Message message, SecurityToken encryptingToken, SecurityToken signingToken,
222void AttachRecipientSecurityProperty(Message message, SecurityToken initiatorToken, SecurityToken recipientToken, IList<SecurityToken> basicTokens, IList<SecurityToken> endorsingTokens,
223IList<SecurityToken> signedEndorsingTokens, IList<SecurityToken> signedTokens, Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> tokenPoliciesMapping)
232void DoIdentityCheckAndAttachInitiatorSecurityProperty(Message message, SecurityToken initiatorToken, SecurityToken recipientToken, ReadOnlyCollection<IAuthorizationPolicy> recipientTokenPolicies)
247SecurityToken requiredReplySigningToken = null;
250SecurityToken encryptionToken = null;
251SecurityToken receiverToken = null;
282SecurityToken wrappingToken;
299SecurityToken signingToken = securityHeader.SignatureToken;
300SecurityToken encryptingToken = securityHeader.EncryptionToken;
321out SecurityToken encryptingToken, out SecurityToken signingToken, out IList<SupportingTokenSpecification> supportingTokens, out SecurityProtocolCorrelationState newCorrelationState)
369protected override void OnBothGetTokenCallsDone(ref Message message, SecurityToken primaryToken, SecurityToken secondaryToken, TimeSpan timeout)
System\ServiceModel\Security\DerivedKeyCachingSecurityTokenSerializer.cs (8)
62protected override SecurityToken ReadTokenCore(XmlReader reader, SecurityTokenResolver tokenResolver)
75SecurityToken tokenToDerive;
92SecurityToken result = this.secureConversation.CreateDerivedKeyToken( id, derivationAlgorithm, label, length, nonce, offset, generation, tokenToDeriveIdentifier, tokenToDerive );
122protected override bool CanWriteTokenCore(SecurityToken token)
147protected override void WriteTokenCore(XmlWriter writer, SecurityToken token)
153string label, byte[] nonce, SecurityToken tokenToDerive, string derivationAlgorithm)
177string label, byte[] nonce, SecurityToken tokenToDerive, SecurityKeyIdentifierClause tokenToDeriveIdentifier, string derivationAlgorithm)
270public bool IsSourceKeyEqual(SecurityToken token)
System\ServiceModel\Security\InitiatorSessionSymmetricMessageSecurityProtocol.cs (27)
19SecurityToken outgoingSessionToken;
21List<SecurityToken> incomingSessionTokens;
78public SecurityToken GetOutgoingSessionToken()
91public void SetOutgoingSessionToken(SecurityToken token)
114public List<SecurityToken> GetIncomingSessionTokens()
122public void SetIncomingSessionTokens(List<SecurityToken> tokens)
130this.incomingSessionTokens = new List<SecurityToken>(tokens);
134void GetTokensForOutgoingMessages(out SecurityToken signingToken, out SecurityToken encryptionToken, out SecurityToken sourceToken, out SecurityTokenParameters tokenParameters)
159SecurityToken signingToken;
160SecurityToken encryptionToken;
161SecurityToken sourceToken;
192SecurityToken signingToken;
193SecurityToken encryptionToken;
194SecurityToken sourceToken;
216internal void SetUpDelayedSecurityExecution(ref Message message, SecurityToken signingToken, SecurityToken encryptionToken, SecurityToken sourceToken, SecurityTokenParameters tokenParameters,
243List<SecurityToken> sessionTokens = GetIncomingSessionTokens();
248SecurityToken signingToken = securityHeader.SignatureToken;
275SecurityToken signingToken;
276SecurityToken encryptionToken;
277SecurityToken sourceToken;
281public SecureOutgoingMessageAsyncResult(Message message, InitiatorSessionSymmetricMessageSecurityProtocol binding, SecurityToken signingToken, SecurityToken encryptionToken, SecurityToken sourceToken, SecurityTokenParameters tokenParameters, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (19)
17SecurityToken outgoingSessionToken;
18List<SecurityToken> incomingSessionTokens;
58public SecurityToken GetOutgoingSessionToken()
70public void SetOutgoingSessionToken(SecurityToken token)
89public List<SecurityToken> GetIncomingSessionTokens()
97public void SetIncomingSessionTokens(List<SecurityToken> tokens)
105this.incomingSessionTokens = new List<SecurityToken>(tokens);
109void GetTokensForOutgoingMessages(out SecurityToken signingToken, out SecurityToken sourceToken, out SecurityTokenParameters tokenParameters)
127internal void SetupDelayedSecurityExecution(string actor, ref Message message, SecurityToken signingToken, SecurityToken sourceToken, SecurityTokenParameters tokenParameters,
143SecurityToken signingToken;
144SecurityToken sourceToken;
154SecurityToken signingToken;
155SecurityToken sourceToken;
187SecurityToken signingToken;
188SecurityToken sourceToken;
192public SecureOutgoingMessageAsyncResult(string actor, Message message, InitiatorSessionSymmetricTransportSecurityProtocol binding, SecurityToken signingToken, SecurityToken sourceToken, SecurityTokenParameters tokenParameters, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\MessageSecurityProtocol.cs (36)
22SecurityToken identityVerifiedToken; // verified for the readonly target
171protected void AttachRecipientSecurityProperty(Message message, SecurityToken protectionToken, bool isWrappedToken, IList<SecurityToken> basicTokens, IList<SecurityToken> endorsingTokens,
172IList<SecurityToken> signedEndorsingTokens, IList<SecurityToken> signedTokens, Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> tokenPoliciesMapping)
190protected void DoIdentityCheckAndAttachInitiatorSecurityProperty(Message message, SecurityToken protectionToken, ReadOnlyCollection<IAuthorizationPolicy> protectionTokenPolicies)
198protected AuthorizationContext EnsureIncomingIdentity(Message message, SecurityToken token, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies)
217protected void EnsureOutgoingIdentity(SecurityToken token, SecurityTokenAuthenticator authenticator)
239protected SecurityProtocolCorrelationState GetCorrelationState(SecurityToken correlationToken)
244protected SecurityProtocolCorrelationState GetCorrelationState(SecurityToken correlationToken, ReceiveSecurityHeader securityHeader)
254protected SecurityToken GetCorrelationToken(SecurityProtocolCorrelationState[] correlationStates)
256SecurityToken token = null;
281protected SecurityToken GetCorrelationToken(SecurityProtocolCorrelationState correlationState)
290protected static void EnsureNonWrappedToken(SecurityToken token, Message message)
298protected SecurityToken GetTokenAndEnsureOutgoingIdentity(SecurityTokenProvider provider, bool isEncryptionOn, TimeSpan timeout, SecurityTokenAuthenticator authenticator)
300SecurityToken token = GetToken(provider, this.Target, timeout);
426SecurityToken requiredSigningToken, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)
719bool OnGetTokenComplete(SecurityToken token)
733protected abstract void OnGetTokenDone(ref Message message, SecurityToken token, TimeSpan timeout);
754SecurityToken token = self.provider.EndGetToken(result);
772protected void SetCorrelationToken(SecurityToken token)
786SecurityToken token = this.provider.EndGetToken(result);
802SecurityToken primaryToken;
847bool OnGetPrimaryTokenComplete(SecurityToken token)
852bool OnGetPrimaryTokenComplete(SecurityToken token, bool primaryCallSkipped)
878SecurityToken token2 = this.secondaryProvider.EndGetToken(result);
883bool OnGetSecondaryTokenComplete(SecurityToken token)
888bool OnGetSecondaryTokenComplete(SecurityToken token, bool secondaryCallSkipped)
898protected abstract void OnBothGetTokenCallsDone(ref Message message, SecurityToken primaryToken, SecurityToken secondaryToken, TimeSpan timeout);
919SecurityToken token = self.primaryProvider.EndGetToken(result);
956SecurityToken token = self.secondaryProvider.EndGetToken(result);
974protected void SetCorrelationToken(SecurityToken token)
992SecurityToken token = this.primaryProvider.EndGetToken(result);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (60)
36SecurityToken outOfBandPrimaryToken;
37IList<SecurityToken> outOfBandPrimaryTokenCollection;
40SecurityToken wrappingToken;
42SecurityToken expectedEncryptionToken;
69Collection<SecurityToken> basicTokens;
70Collection<SecurityToken> signedTokens;
71Collection<SecurityToken> endorsingTokens;
72Collection<SecurityToken> signedEndorsingTokens;
73Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> tokenPoliciesMapping;
126public Collection<SecurityToken> BasicSupportingTokens
134public Collection<SecurityToken> SignedSupportingTokens
142public Collection<SecurityToken> EndorsingSupportingTokens
158public Collection<SecurityToken> SignedEndorsingSupportingTokens
215public SecurityToken EncryptionToken
452public SecurityToken SignatureToken
457public Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> SecurityTokenAuthorizationPoliciesMapping
463this.tokenPoliciesMapping = new Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>>();
500public void ConfigureSymmetricBindingServerReceiveHeader(SecurityToken wrappingToken, SecurityTokenParameters wrappingTokenParameters, IList<SupportingTokenAuthenticatorSpecification> supportingTokenAuthenticators)
507public void ConfigureAsymmetricBindingServerReceiveHeader(SecurityTokenAuthenticator primaryTokenAuthenticator, SecurityTokenParameters primaryTokenParameters, SecurityToken wrappingToken, SecurityTokenParameters wrappingTokenParameters, IList<SupportingTokenAuthenticatorSpecification> supportingTokenAuthenticators)
521public void ConfigureAsymmetricBindingClientReceiveHeader(SecurityToken primaryToken, SecurityTokenParameters primaryTokenParameters, SecurityToken encryptionToken, SecurityTokenParameters encryptionTokenParameters, SecurityTokenAuthenticator primaryTokenAuthenticator)
539public void ConfigureSymmetricBindingClientReceiveHeader(SecurityToken primaryToken, SecurityTokenParameters primaryTokenParameters)
545public void ConfigureSymmetricBindingClientReceiveHeader(IList<SecurityToken> primaryTokens, SecurityTokenParameters primaryTokenParameters)
564protected abstract byte[] DecryptSecurityHeaderElement(EncryptedData encryptedData, WrappedKeySecurityToken wrappedKeyToken, out SecurityToken encryptionToken);
638Collection<SecurityToken> EnsureSupportingTokens(ref Collection<SecurityToken> list)
641list = new Collection<SecurityToken>();
1193SecurityToken sourceToken = null;
1212SecurityToken GetRootToken(SecurityToken token)
1224void RecordEncryptionTokenAndRemoveReferenceListEntry(string id, SecurityToken encryptionToken)
1263SecurityToken encryptionToken;
1308SecurityToken securityToken;
1445SecurityToken signingToken = VerifySignature(signedXml, true, this.primaryTokenResolver, null, null);
1447SecurityToken rootSigningToken = GetRootToken(signingToken);
1481TokenTracker GetSupportingTokenTracker(SecurityToken token)
1565SecurityToken signingToken = VerifySignature(signedXml, false, this.universalTokenResolver, signatureTarget, id);
1574SecurityToken rootSigningToken = GetRootToken(signingToken);
1604bool IsPrimaryToken(SecurityToken token)
1625SecurityToken encryptionToken, string idInEncryptedForm, TimeSpan timeout)
1634SecurityToken token = ReadToken(reader, this.CombinedUniversalTokenResolver, allowedAuthenticators, out usedTokenAuthenticator);
1737SecurityToken ReadToken(XmlReader reader, SecurityTokenResolver tokenResolver, IList<SecurityTokenAuthenticator> allowedTokenAuthenticators, out SecurityTokenAuthenticator usedTokenAuthenticator)
1739SecurityToken token = this.StandardsManager.SecurityTokenSerializer.ReadToken(reader, tokenResolver);
1782void AddDerivedKeyTokenToResolvers(SecurityToken token)
1786SecurityToken rootToken = GetRootToken(token);
1818protected void RecordEncryptionToken(SecurityToken token)
1823protected void RecordSignatureToken(SecurityToken token)
1836protected abstract SecurityToken VerifySignature(SignedXml signedXml, bool isPrimarySignature,
1985SecurityToken token;
1994public SecurityToken Token
2004public void RecordToken(SecurityToken token)
2030public SecurityToken token;
2044public TokenTracker(SupportingTokenAuthenticatorSpecification spec, SecurityToken token, bool allowFirstTokenMismatch)
2051public void RecordToken(SecurityToken token)
2072static bool AreTokensEqual(SecurityToken outOfBandToken, SecurityToken replyToken)
2122protected override bool TryResolveTokenCore(SecurityKeyIdentifier keyIdentifier, out SecurityToken token)
2149bool TryResolveTokenFromIntrinsicKeyClause(SecurityKeyIdentifierClause keyIdentifierClause, out SecurityToken token)
2166SecurityToken unwrappingToken;
2176protected override bool TryResolveTokenCore(SecurityKeyIdentifierClause keyIdentifierClause, out SecurityToken token)
System\ServiceModel\Security\SecurityAlgorithmSuite.cs (9)
246internal string GetEncryptionKeyDerivationAlgorithm(SecurityToken token, SecureConversationVersion version)
258internal int GetEncryptionKeyDerivationLength(SecurityToken token, SecureConversationVersion version)
275internal void GetKeyWrapAlgorithm(SecurityToken token, out string keyWrapAlgorithm, out XmlDictionaryString keyWrapAlgorithmDictionaryString)
292internal void GetSignatureAlgorithmAndKey(SecurityToken token, out string signatureAlgorithm, out SecurityKey key, out XmlDictionaryString signatureAlgorithmDictionaryString)
321internal string GetSignatureKeyDerivationAlgorithm(SecurityToken token, SecureConversationVersion version)
333internal int GetSignatureKeyDerivationLength(SecurityToken token, SecureConversationVersion version)
359internal void EnsureAcceptableSignatureKeySize(SecurityKey securityKey, SecurityToken token)
385internal void EnsureAcceptableSignatureSymmetricKeySize(SymmetricSecurityKey securityKey, SecurityToken token)
418internal void EnsureAcceptableDecryptionSymmetricKeySize(SymmetricSecurityKey securityKey, SecurityToken token)
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (18)
20SecurityToken expectedWrapper;
35public SecurityToken ExpectedWrapper
47public void Add(SecurityToken token)
52public void Add(SecurityToken token, SecurityTokenReferenceStyle allowedReferenceStyle, SecurityTokenParameters tokenParameters)
95internal SecurityToken ResolveToken(SecurityKeyIdentifier keyIdentifier, bool matchOnlyExternalTokens, bool resolveIntrinsicKeyClause)
103SecurityToken token = ResolveToken(keyIdentifier[i], matchOnlyExternalTokens, resolveIntrinsicKeyClause);
140bool MatchDirectReference(SecurityToken token, SecurityKeyIdentifierClause keyClause)
147internal SecurityToken ResolveToken(SecurityKeyIdentifierClause keyIdentifierClause, bool matchOnlyExternal, bool resolveIntrinsicKeyClause)
154SecurityToken resolvedToken = null;
162SecurityToken token = tokens[i].Token;
183SecurityToken unwrappingToken;
264protected override bool TryResolveTokenCore(SecurityKeyIdentifier keyIdentifier, out SecurityToken token)
270internal bool TryResolveToken(SecurityKeyIdentifier keyIdentifier, bool matchOnlyExternalTokens, bool resolveIntrinsicKeyClause, out SecurityToken token)
276protected override bool TryResolveTokenCore(SecurityKeyIdentifierClause keyIdentifierClause, out SecurityToken token)
282internal bool TryResolveToken(SecurityKeyIdentifierClause keyIdentifierClause, bool matchOnlyExternalTokens, bool resolveIntrinsicKeyClause, out SecurityToken token)
307SecurityToken token;
310public SecurityTokenEntry(SecurityToken token, SecurityTokenParameters tokenParameters, SecurityTokenReferenceStyle allowedReferenceStyle)
317public SecurityToken Token
System\ServiceModel\Security\SecurityProtocol.cs (11)
503void AddSupportingTokenSpecification(SecurityMessageProperty security, IList<SecurityToken> tokens, SecurityTokenAttachmentMode attachmentMode, IDictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> tokenPoliciesMapping)
515protected void AddSupportingTokenSpecification(SecurityMessageProperty security, IList<SecurityToken> basicTokens, IList<SecurityToken> endorsingTokens, IList<SecurityToken> signedEndorsingTokens, IList<SecurityToken> signedTokens, IDictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> tokenPoliciesMapping)
599SecurityToken supportingToken;
681SecurityToken token = supportingTokens[i].SecurityToken;
749internal static SecurityToken GetToken(SecurityTokenProvider provider, EndpointAddress target, TimeSpan timeout)
758SecurityToken token = null;
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (15)
461protected override SecurityToken EndGetTokenCore(IAsyncResult result)
466protected override SecurityToken GetTokenCore(TimeSpan timeout)
472protected override IAsyncResult BeginRenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state)
478protected override SecurityToken EndRenewTokenCore(IAsyncResult result)
483protected override SecurityToken RenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed)
525Message CreateRequest(SecuritySessionOperation operation, EndpointAddress target, SecurityToken currentToken, out object requestState)
556void OnOperationSuccess(SecuritySessionOperation operation, EndpointAddress target, SecurityToken issuedToken, SecurityToken currentToken)
561void OnOperationFailure(SecuritySessionOperation operation, EndpointAddress target, SecurityToken currentToken, Exception e, IChannel channel)
570GenericXmlSecurityToken DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
767protected virtual Message CreateRenewRequest(EndpointAddress target, SecurityToken currentSessionToken, out object requestState)
830SecurityToken currentToken;
835public SessionOperationAsyncResult(SecuritySessionSecurityTokenProvider requestor, SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout, AsyncCallback callback, object state)
1069public static SecurityToken End(IAsyncResult result)
System\ServiceModel\Security\SecurityUtils.cs (11)
553internal static T GetSecurityKey<T>(SecurityToken token)
578internal static bool HasSymmetricSecurityKey(SecurityToken token)
583internal static void EnsureExpectedSymmetricMatch(SecurityToken t1, SecurityToken t2, Message message)
599internal static SymmetricAlgorithm GetSymmetricAlgorithm(string algorithm, SecurityToken token)
612internal static KeyedHashAlgorithm GetKeyedHashAlgorithm(string algorithm, SecurityToken token)
632internal static byte[] DecryptKey(SecurityToken unwrappingToken, string encryptionMethod, byte[] wrappedKey, out SecurityKey unwrappingSecurityKey)
653internal static byte[] EncryptKey(SecurityToken wrappingToken, string encryptionMethod, byte[] keyToWrap)
716internal static byte[] GenerateDerivedKey(SecurityToken tokenToDerive, string derivationAlgorithm, byte[] label, byte[] nonce,
766internal static bool IsSupportedAlgorithm(string algorithm, SecurityToken token)
2283public static WrappedKeySecurityToken CreateTokenFromEncryptedKeyClause(EncryptedKeyIdentifierClause keyClause, SecurityToken unwrappingToken)
System\ServiceModel\Security\SendSecurityHeader.cs (35)
43List<SecurityToken> basicTokens = null;
48SecurityToken encryptingToken;
230public void AddPrerequisiteToken(SecurityToken token)
258public void SetSigningToken(SecurityToken token, SecurityTokenParameters tokenParameters)
269public void SetEncryptionToken(SecurityToken token, SecurityTokenParameters tokenParameters)
281public void AddBasicSupportingToken(SecurityToken token, SecurityTokenParameters parameters)
296this.basicTokens = new List<SecurityToken>();
305public void AddEndorsingSupportingToken(SecurityToken token, SecurityTokenParameters parameters)
328public void AddSignedEndorsingSupportingToken(SecurityToken token, SecurityTokenParameters parameters)
341public void AddSignedSupportingToken(SecurityToken token, SecurityTokenParameters parameters)
401SecurityToken sourceToken;
649SecurityToken[] signedTokens = elementContainer.GetSignedSupportingTokens();
670SecurityToken[] endorsingTokens = elementContainer.GetEndorsingSupportingTokens();
681SecurityToken[] endorsingDerivedTokens = elementContainer.GetEndorsingDerivedSupportingTokens();
689SecurityToken[] signedEndorsingTokens = elementContainer.GetSignedEndorsingSupportingTokens();
698SecurityToken[] signedEndorsingDerivedTokens = elementContainer.GetSignedEndorsingDerivedSupportingTokens();
739protected abstract void WriteSecurityTokenReferencyEntry(XmlDictionaryWriter writer, SecurityToken securityToken, SecurityTokenParameters securityTokenParameters);
791SecurityToken signingToken;
851protected abstract void StartPrimarySignatureCore(SecurityToken token, SecurityKeyIdentifier identifier, MessagePartSpecification signatureParts, bool generateTargettablePrimarySignature);
854SecurityToken[] signedEndorsingTokens, SecurityToken[] signedTokens, SendSecurityHeaderElement[] basicTokens, bool isPrimarySignature);
857protected abstract ISignatureValueSecurityElement CreateSupportingSignature(SecurityToken token, SecurityKeyIdentifier identifier);
859protected abstract ISignatureValueSecurityElement CreateSupportingSignature(SecurityToken token, SecurityKeyIdentifier identifier, ISecurityElement primarySignature);
861protected abstract void StartEncryptionCore(SecurityToken token, SecurityKeyIdentifier keyIdentifier);
866void SignWithSupportingToken(SecurityToken token, SecurityKeyIdentifierClause identifierClause)
916SecurityToken[] endorsingTokens = this.elementContainer.GetEndorsingSupportingTokens();
921SecurityToken source = endorsingTokens[i];
927SecurityToken signingToken;
947SecurityToken[] signedEndorsingSupportingTokens = this.elementContainer.GetSignedEndorsingSupportingTokens();
952SecurityToken source = signedEndorsingSupportingTokens[i];
958SecurityToken signingToken;
980protected bool ShouldUseStrTransformForToken(SecurityToken securityToken, int position, SecurityTokenAttachmentMode mode, out SecurityKeyIdentifierClause keyIdentifierClause)
1041SecurityToken token;
1043public TokenElement(SecurityToken token, SecurityStandardsManager standardsManager)
1070public SecurityToken Token
System\ServiceModel\Security\SymmetricSecurityProtocol.cs (25)
158SecurityToken token;
161SecurityToken prerequisiteWrappingToken;
183SecurityToken token;
186SecurityToken prerequisiteWrappingToken;
194SecurityToken prerequisiteToken,
195SecurityToken primaryToken,
238WrappedKeySecurityToken CreateWrappedKeyToken(SecurityToken wrappingToken, SecurityTokenParameters wrappingTokenParameters, SecurityTokenReferenceStyle wrappingTokenReferenceStyle)
252SecurityToken GetInitiatorToken(SecurityToken providerToken,
256out SecurityToken prerequisiteWrappingToken)
260SecurityToken token;
263SecurityToken asymmetricToken = providerToken;
285bool TryGetTokenSynchronouslyForOutgoingSecurity(Message message, SecurityProtocolCorrelationState correlationState, bool isBlockingCall, TimeSpan timeout, out SecurityToken token, out SecurityTokenParameters tokenParameters, out SecurityToken prerequisiteWrappingToken, out IList<SupportingTokenSpecification> supportingTokens, out SecurityProtocolCorrelationState newCorrelationState)
303SecurityToken providerToken = GetTokenAndEnsureOutgoingIdentity(provider, factory.ApplyConfidentiality, timeoutHelper.RemainingTime(), this.initiatorTokenAuthenticator);
316SecurityToken GetCorrelationToken(SecurityProtocolCorrelationState[] correlationStates, out SecurityTokenParameters correlationTokenParameters)
318SecurityToken token = GetCorrelationToken(correlationStates);
323void EnsureWrappedToken(SecurityToken token, Message message)
337SecurityToken requiredReplySigningToken = null;
342SecurityToken outOfBandToken = GetCorrelationToken(correlationStates, out outOfBandTokenParameters);
361SecurityToken signingToken = securityHeader.SignatureToken;
383SecurityToken wrappingToken = (signingToken as WrappedKeySecurityToken).WrappingToken;
409protected override void OnGetTokenDone(ref Message message, SecurityToken providerToken, TimeSpan timeout)
412SecurityToken prerequisiteWrappingToken;
413SecurityToken token = symmetricBinding.GetInitiatorToken(providerToken, message, timeout, out tokenParameters, out prerequisiteWrappingToken);
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (8)
45SecurityToken tokenToDerive;
50public DerivedKeySecurityToken(SecurityToken tokenToDerive, SecurityKeyIdentifierClause tokenToDeriveIdentifier, int length)
55internal DerivedKeySecurityToken(SecurityToken tokenToDerive, SecurityKeyIdentifierClause tokenToDeriveIdentifier,
69string label, int minNonceLength, SecurityToken tokenToDerive,
82string label, byte[] nonce, SecurityToken tokenToDerive,
133internal SecurityToken TokenToDerive
191SecurityToken tokenToDerive, SecurityKeyIdentifierClause tokenToDeriveIdentifier, string derivationAlgorithm)
197SecurityToken tokenToDerive, SecurityKeyIdentifierClause tokenToDeriveIdentifier, string derivationAlgorithm,
System\ServiceModel\Security\WSSecureConversation.cs (11)
57public virtual void ReadDerivedKeyTokenParameters(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver, out string id, out string derivationAlgorithm, out string label, out int length, out byte[] nonce, out int offset, out int generation, out SecurityKeyIdentifierClause tokenToDeriveIdentifier, out SecurityToken tokenToDerive)
63public virtual SecurityToken CreateDerivedKeyToken(string id, string derivationAlgorithm, string label, int length, byte[] nonce, int offset, int generation, SecurityKeyIdentifierClause tokenToDeriveIdentifier, SecurityToken tokenToDerive)
131public virtual void ReadDerivedKeyTokenParameters(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver, out string id, out string derivationAlgorithm, out string label, out int length, out byte[] nonce, out int offset, out int generation, out SecurityKeyIdentifierClause tokenToDeriveIdentifier, out SecurityToken tokenToDerive)
222public virtual SecurityToken CreateDerivedKeyToken(string id, string derivationAlgorithm, string label, int length, byte[] nonce, int offset, int generation, SecurityKeyIdentifierClause tokenToDeriveIdentifier, SecurityToken tokenToDerive)
236public override SecurityToken ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)
246SecurityToken tokenToDerive;
254public override void WriteTokenCore(XmlDictionaryWriter writer, SecurityToken token)
422public override SecurityToken ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)
489public override void WriteTokenCore(XmlDictionaryWriter writer, SecurityToken token)
System\ServiceModel\Security\WSSecurityJan2004.cs (21)
141public abstract SecurityToken ReadBinaryCore(string id, string valueTypeUri, byte[] rawData);
143public override SecurityToken ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)
166public abstract void WriteBinaryCore(SecurityToken token, out string id, out byte[] rawData);
168public override void WriteTokenCore(XmlDictionaryWriter writer, SecurityToken token)
227public override SecurityToken ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)
232public override void WriteTokenCore(XmlDictionaryWriter writer, SecurityToken token)
269public override SecurityToken ReadBinaryCore(string id, string valueTypeUri, byte[] rawData)
274public override void WriteBinaryCore(SecurityToken token, out string id, out byte[] rawData)
325public override SecurityToken ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)
331public override void WriteTokenCore(XmlDictionaryWriter writer, SecurityToken token)
361SecurityToken token = new UserNameSecurityToken(userName, password, id);
362return new CompletedAsyncResult<SecurityToken>(token, callback, state);
382public override SecurityToken EndReadTokenCore(IAsyncResult result)
384return CompletedAsyncResult<SecurityToken>.End(result);
387public override SecurityToken ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)
401public override void WriteTokenCore(XmlDictionaryWriter writer, SecurityToken token)
514public override SecurityToken ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)
554SecurityToken unwrappingToken;
594public override void WriteTokenCore(XmlDictionaryWriter writer, SecurityToken token)
619public override SecurityToken ReadBinaryCore(string id, string valueTypeUri, byte[] rawData)
629public override void WriteBinaryCore(SecurityToken token, out string id, out byte[] rawData)
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (10)
43protected static SymmetricAlgorithm CreateDecryptionAlgorithm(SecurityToken token, string encryptionMethod, SecurityAlgorithmSuite suite)
68void DecryptBody(XmlDictionaryReader bodyContentReader, SecurityToken token)
97EncryptedData encryptedData, WrappedKeySecurityToken wrappedKeyToken, out SecurityToken encryptionToken)
446SecurityKeyIdentifier keyIdentifier, SecurityTokenResolver resolver, bool isFromSignature, out SecurityToken token)
463protected static SecurityToken ResolveKeyIdentifier(SecurityKeyIdentifier keyIdentifier, SecurityTokenResolver resolver, bool isFromSignature)
465SecurityToken token;
483SecurityToken ResolveSignatureToken(SecurityKeyIdentifier keyIdentifier, SecurityTokenResolver resolver, bool isPrimarySignature)
485SecurityToken token;
576protected override SecurityToken VerifySignature(SignedXml signedXml, bool isPrimarySignature,
584SecurityToken token = ResolveSignatureToken(signedXml.Signature.KeyIdentifier, resolver, isPrimarySignature);
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (12)
91void AddSignatureReference(SecurityToken token, int position, SecurityTokenAttachmentMode mode)
98void AddPrimaryTokenSignatureReference(SecurityToken token, SecurityTokenParameters securityTokenParameters)
125void AddTokenSignatureReference(SecurityToken token, SecurityKeyIdentifierClause keyIdentifierClause, bool strTransformEnabled)
203void AddSignatureReference(SecurityToken[] tokens, SecurityTokenAttachmentMode mode)
410protected static MemoryStream CaptureToken(SecurityToken token, SecurityStandardsManager serializer)
487SecurityToken[] signedEndorsingTokens,
488SecurityToken[] signedTokens,
633protected override void StartEncryptionCore(SecurityToken token, SecurityKeyIdentifier keyIdentifier)
645protected override void StartPrimarySignatureCore(SecurityToken token,
677protected override ISignatureValueSecurityElement CreateSupportingSignature(SecurityToken token, SecurityKeyIdentifier identifier)
683protected override ISignatureValueSecurityElement CreateSupportingSignature(SecurityToken token, SecurityKeyIdentifier identifier, ISecurityElement elementToSign)
715protected override void WriteSecurityTokenReferencyEntry(XmlDictionaryWriter writer, SecurityToken securityToken, SecurityTokenParameters securityTokenParameters)