10 instantiations of UserNameSecurityToken
System.IdentityModel (4)
System\IdentityModel\Selectors\UserNameSecurityTokenProvider.cs (1)
20
this.userNameToken = new
UserNameSecurityToken
(userName, password);
System\IdentityModel\Tokens\UserNameSecurityTokenHandler.cs (2)
162
new
UserNameSecurityToken
(userName, password) :
163
new
UserNameSecurityToken
(userName, password, id);
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (1)
115
windowsIdentity.BootstrapContext = new BootstrapContext(new
UserNameSecurityToken
(usernameToken.UserName, null), this);
System.ServiceModel (6)
System\ServiceModel\Channels\HttpChannelListener.cs (1)
642
SecurityToken securityToken = new
UserNameSecurityToken
(identity.Name, identity.Password);
System\ServiceModel\Security\SecurityUtils.cs (3)
1414
messageProperty.TransportToken = new SecurityTokenSpecification(new
UserNameSecurityToken
(token.UserName, null, token.Id), messageProperty.TransportToken.SecurityTokenPolicies);
1423
messageProperty.ProtectionToken = new SecurityTokenSpecification(new
UserNameSecurityToken
(token.UserName, null, token.Id), messageProperty.ProtectionToken.SecurityTokenPolicies);
1435
messageProperty.IncomingSupportingTokens[i] = new SupportingTokenSpecification(new
UserNameSecurityToken
(token.UserName, null, token.Id), supportingTokenSpecification.SecurityTokenPolicies, supportingTokenSpecification.SecurityTokenAttachmentMode, supportingTokenSpecification.SecurityTokenParameters);
System\ServiceModel\Security\WSSecurityJan2004.cs (2)
361
SecurityToken token = new
UserNameSecurityToken
(userName, password, id);
398
return new
UserNameSecurityToken
(userName, password, id);
35 references to UserNameSecurityToken
System.IdentityModel (16)
System\IdentityModel\Selectors\UserNameSecurityTokenAuthenticator.cs (3)
19
return token is
UserNameSecurityToken
;
24
UserNameSecurityToken
userNameToken = (
UserNameSecurityToken
) token;
System\IdentityModel\Selectors\UserNameSecurityTokenProvider.cs (1)
11
UserNameSecurityToken
userNameToken;
System\IdentityModel\Tokens\UserNameSecurityTokenHandler.cs (5)
74
return typeof(
UserNameSecurityToken
);
90
/// <returns>An instance of <see cref="
UserNameSecurityToken
"/>.</returns>
186
UserNameSecurityToken
usernameSecurityToken = token as
UserNameSecurityToken
;
190
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(
UserNameSecurityToken
)));
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (6)
44
/// Validates a <see cref="
UserNameSecurityToken
"/>.
46
/// <param name="token">The <see cref="
UserNameSecurityToken
"/> to validate.</param>
49
/// <exception cref="ArgumentException">The token is not assignable from<see cref="
UserNameSecurityToken
"/>.</exception>
60
UserNameSecurityToken
usernameToken = token as
UserNameSecurityToken
;
63
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(
UserNameSecurityToken
)));
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
150
protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(
UserNameSecurityToken
) }; }
System.ServiceModel (19)
System\ServiceModel\Channels\PeerSecurityManager.cs (2)
726
UserNameSecurityToken
token = tokenProvider.GetToken(ServiceDefaults.SendTimeout) as
UserNameSecurityToken
;
System\ServiceModel\Channels\TransportSecurityHelpers.cs (4)
489
UserNameSecurityToken
token = GetToken<
UserNameSecurityToken
>(tokenProvider.TokenProvider, timeout);
584
UserNameSecurityToken
token = (
UserNameSecurityToken
)this.tokenProvider.EndGetToken(result);
System\ServiceModel\Security\SecurityUtils.cs (9)
1411
UserNameSecurityToken
token = messageProperty.TransportToken.SecurityToken as
UserNameSecurityToken
;
1412
if ((token != null) && !messageProperty.TransportToken.SecurityToken.GetType().IsSubclassOf(typeof(
UserNameSecurityToken
)))
1420
UserNameSecurityToken
token = messageProperty.ProtectionToken.SecurityToken as
UserNameSecurityToken
;
1421
if ((token != null) && !messageProperty.ProtectionToken.SecurityToken.GetType().IsSubclassOf(typeof(
UserNameSecurityToken
)))
1432
UserNameSecurityToken
token = supportingTokenSpecification.SecurityToken as
UserNameSecurityToken
;
1433
if ((token != null) && !supportingTokenSpecification.SecurityToken.GetType().IsSubclassOf(typeof(
UserNameSecurityToken
)))
System\ServiceModel\Security\WSSecurityJan2004.cs (4)
349
protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(
UserNameSecurityToken
) }; }
373
return CreateDirectReference(issuedTokenXml, UtilityStrings.IdAttribute, UtilityStrings.Namespace, typeof(
UserNameSecurityToken
));
403
UserNameSecurityToken
upToken = (
UserNameSecurityToken
)token;