3 writes to ProtectionToken
System.ServiceModel (3)
System\ServiceModel\Security\MessageSecurityProtocol.cs (2)
184
security.
ProtectionToken
= new SecurityTokenSpecification(protectionToken, protectionTokenPolicies);
194
security.
ProtectionToken
= new SecurityTokenSpecification(protectionToken, protectionTokenPolicies);
System\ServiceModel\Security\SecurityUtils.cs (1)
1423
messageProperty.
ProtectionToken
= new SecurityTokenSpecification(new UserNameSecurityToken(token.UserName, null, token.Id), messageProperty.ProtectionToken.SecurityTokenPolicies);
17 references to ProtectionToken
System.ServiceModel (17)
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (2)
782
if (_securityMessageProperty.
ProtectionToken
!= null)
784
yield return _securityMessageProperty.
ProtectionToken
;
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (4)
843
if (security.
ProtectionToken
!= null)
845
AddTokenToRemoveIfRequired(security.
ProtectionToken
.SecurityToken, securityContextTokensToRemove);
971
SecurityContextSecurityToken sct = (securityProperty.
ProtectionToken
!= null) ? (securityProperty.
ProtectionToken
.SecurityToken as SecurityContextSecurityToken) : null;
System\ServiceModel\Security\SecuritySessionServerSettings.cs (2)
1366
SecurityContextSecurityToken sct = (securityProperty.
ProtectionToken
!= null) ? securityProperty.
ProtectionToken
.SecurityToken as SecurityContextSecurityToken : null;
System\ServiceModel\Security\SecurityUtils.cs (4)
1418
if (messageProperty.
ProtectionToken
!= null)
1420
UserNameSecurityToken token = messageProperty.
ProtectionToken
.SecurityToken as UserNameSecurityToken;
1421
if ((token != null) && !messageProperty.
ProtectionToken
.SecurityToken.GetType().IsSubclassOf(typeof(UserNameSecurityToken)))
1423
messageProperty.ProtectionToken = new SecurityTokenSpecification(new UserNameSecurityToken(token.UserName, null, token.Id), messageProperty.
ProtectionToken
.SecurityTokenPolicies);
System\ServiceModel\Security\WSTrustServiceContract.cs (2)
102
if (msgProperty.
ProtectionToken
!= null)
104
tokenList.Add(msgProperty.
ProtectionToken
.SecurityToken);
System\ServiceModel\ServiceAuthenticationManager.cs (3)
117
if ((message.Properties.Security.
ProtectionToken
!= null) &&
118
(message.Properties.Security.
ProtectionToken
.SecurityToken != null) &&
119
(message.Properties.Security.
ProtectionToken
.SecurityToken.GetType() == typeof(SecurityContextSecurityToken)))