3 types derived from ClaimsIdentity
mscorlib (2)
system\security\principal\genericidentity.cs (1)
31
public class GenericIdentity :
ClaimsIdentity
{
system\security\principal\windowsidentity.cs (1)
65
public class WindowsIdentity :
ClaimsIdentity
, ISerializable, IDeserializationCallback, IDisposable {
System.Web (1)
Security\FormsIdentity.cs (1)
29
public class FormsIdentity :
ClaimsIdentity
{
20 instantiations of ClaimsIdentity
mscorlib (5)
system\security\claims\ClaimsIdentity.cs (1)
594
ClaimsIdentity newIdentity = new
ClaimsIdentity
(m_instanceClaims);
system\security\claims\ClaimsPrincipal.cs (3)
208
m_identities.Add(new
ClaimsIdentity
(identity));
232
m_identities.Add(new
ClaimsIdentity
(principal.Identity));
301
return new
ClaimsIdentity
(reader);
system\security\principal\genericprincipal.cs (1)
102
claimsIdentity = new
ClaimsIdentity
(identity);
System.IdentityModel (10)
System\IdentityModel\Claims\ClaimsConversionHelper.cs (1)
43
ClaimsIdentity claimsIdentity = new
ClaimsIdentity
(authenticationType);
System\IdentityModel\Tokens\AuthorizationPolicy.cs (2)
195
return new ClaimsPrincipal(new
ClaimsIdentity
());
245
return new ClaimsPrincipal(new
ClaimsIdentity
(identity));
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
169
ClaimsIdentity identity = new
ClaimsIdentity
(new Claim[] { new Claim(ClaimTypes.Rsa, rsaToken.Rsa.ToXmlString(false), ClaimValueTypes.RsaKeyValue, ClaimsIdentity.DefaultIssuer) }, AuthenticationTypes.Signature);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
1952
subject.Actor = new
ClaimsIdentity
(claims, AuthenticationTypes.Federation);
2055
ClaimsIdentity subject = new
ClaimsIdentity
(AuthenticationTypes.Federation, SamlSecurityTokenRequirement.NameClaimType, SamlSecurityTokenRequirement.RoleClaimType);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
1117
ClaimsIdentity subject = new
ClaimsIdentity
(AuthenticationTypes.Federation,
1499
subject.Actor = new
ClaimsIdentity
(claims, AuthenticationTypes.Federation);
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
932
identity = new
ClaimsIdentity
(authenticationType, nameClaimType, roleClaimType);
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
542
identity = new
ClaimsIdentity
(AuthenticationTypes.X509);
System.ServiceModel (3)
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
146
principal = claimsPrincipal ?? new ClaimsPrincipal( new
ClaimsIdentity
() );
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (2)
40
new List<IAuthorizationPolicy>() { new AuthorizationPolicy(new
ClaimsIdentity
()) });
189
idfxAuthorizationPolicy = new AuthorizationPolicy(new
ClaimsIdentity
());
System.Web (2)
Security\RolePrincipal.cs (2)
190
claimsIdentity = new
ClaimsIdentity
(identity);
390
AddIdentityAttachingRoles(new
ClaimsIdentity
(_Identity));
288 references to ClaimsIdentity
mscorlib (119)
system\security\claims\Claim.cs (42)
49
ClaimsIdentity
m_subject;
82
/// <param name="subject"> the value for <see cref="Claim.Subject"/>, which is the <see cref="
ClaimsIdentity
"/> that has these claims.</param>
84
public Claim(BinaryReader reader,
ClaimsIdentity
subject)
99
/// <see cref="Claim.Issuer"/> is set to <see cref="
ClaimsIdentity
.DefaultIssuer"/>,
101
/// <see cref="Claim.OriginalIssuer"/> is set to <see cref="
ClaimsIdentity
.DefaultIssuer"/>, and
104
/// <seealso cref="
ClaimsIdentity
"/>
108
: this(type, value, ClaimValueTypes.String,
ClaimsIdentity
.DefaultIssuer,
ClaimsIdentity
.DefaultIssuer, (
ClaimsIdentity
)null)
120
/// <see cref="Claim.Issuer"/> is set to <see cref="
ClaimsIdentity
.DefaultIssuer"/>,
121
/// <see cref="Claim.OriginalIssuer"/> is set to <see cref="
ClaimsIdentity
.DefaultIssuer"/>,
124
/// <seealso cref="
ClaimsIdentity
"/>
128
: this(type, value, valueType,
ClaimsIdentity
.DefaultIssuer,
ClaimsIdentity
.DefaultIssuer, (
ClaimsIdentity
)null)
138
/// <param name="issuer">The claim issuer. If this parameter is empty or null, then <see cref="
ClaimsIdentity
.DefaultIssuer"/> is used.</param>
144
/// <seealso cref="
ClaimsIdentity
"/>
148
: this(type, value, valueType, issuer, issuer, (
ClaimsIdentity
)null)
158
/// <param name="issuer">The claim issuer. If this parameter is empty or null, then <see cref="
ClaimsIdentity
.DefaultIssuer"/> is used.</param>
164
/// <seealso cref="
ClaimsIdentity
"/>
168
: this(type, value, valueType, issuer, originalIssuer, (
ClaimsIdentity
)null)
178
/// <param name="issuer">The claim issuer. If this parameter is empty or null, then <see cref="
ClaimsIdentity
.DefaultIssuer"/> is used.</param>
182
/// <seealso cref="
ClaimsIdentity
"/>
185
public Claim(string type, string value, string valueType, string issuer, string originalIssuer,
ClaimsIdentity
subject)
196
internal Claim(string type, string value, string valueType, string issuer, string originalIssuer,
ClaimsIdentity
subject, string propertyKey, string propertyValue)
224
m_issuer =
ClaimsIdentity
.DefaultIssuer;
256
: this(other, (other == null ? (
ClaimsIdentity
)null : other.m_subject))
264
/// <param name="subject">the <see cref="
ClaimsIdentity
"/> to assign to <see cref="Claim.Subject"/>.</param>
267
protected Claim(Claim other,
ClaimsIdentity
subject)
358
public
ClaimsIdentity
Subject
395
return Clone((
ClaimsIdentity
)null);
401
/// <param name="identity">the value for <see cref="Claim.Subject"/>, which is the <see cref="
ClaimsIdentity
"/> that has these claims.
403
public virtual Claim Clone(
ClaimsIdentity
identity)
408
private void Initialize(BinaryReader reader,
ClaimsIdentity
subject)
424
m_type =
ClaimsIdentity
.DefaultNameClaimType;
428
m_type =
ClaimsIdentity
.DefaultRoleClaimType;
453
m_issuer =
ClaimsIdentity
.DefaultIssuer;
467
m_originalIssuer =
ClaimsIdentity
.DefaultIssuer;
522
if (string.Equals(m_type,
ClaimsIdentity
.DefaultNameClaimType))
526
else if (string.Equals(m_type,
ClaimsIdentity
.DefaultRoleClaimType))
541
if (!string.Equals(m_issuer,
ClaimsIdentity
.DefaultIssuer, StringComparison.Ordinal))
551
else if (!string.Equals(m_originalIssuer,
ClaimsIdentity
.DefaultIssuer, StringComparison.Ordinal))
system\security\claims\ClaimsIdentity.cs (28)
102
ClaimsIdentity
m_actor;
125
/// Initializes an instance of <see cref="
ClaimsIdentity
"/> with an empty claims collection.
136
/// Initializes an instance of <see cref="
ClaimsIdentity
"/> using the name and authentication type from
188
/// Initializes an instance of <see cref="
ClaimsIdentity
"/> using the name and authentication type from
211
/// Initializes an instance of <see cref="
ClaimsIdentity
"/> using an enumeration of type
224
/// Initializes an instance of <see cref="
ClaimsIdentity
"/> using an enumeration of type
291
ClaimsIdentity
claimsIdentity = identity as
ClaimsIdentity
;
363
/// Initializes an instance of <see cref="
ClaimsIdentity
"/> using a <see cref="BinaryReader"/>.
379
/// <param name="other"><see cref="
ClaimsIdentity
"/> to copy.</param>
381
protected ClaimsIdentity(
ClaimsIdentity
other)
465
/// Gets or sets a <see cref="
ClaimsIdentity
"/> that was granted delegation rights.
467
public
ClaimsIdentity
Actor
484
/// Gets or sets a context that was used to create this <see cref="
ClaimsIdentity
"/>.
495
/// Gets the claims as <see cref="IEnumerable{Claim}"/>, associated with this <see cref="
ClaimsIdentity
"/>.
535
/// Allow the association of claims with this instance of <see cref="
ClaimsIdentity
"/>.
537
/// It is recommended the creator of the claims ensures the subject of the claims reflects this <see cref="
ClaimsIdentity
"/>.
589
/// Returns a new instance of <see cref="
ClaimsIdentity
"/> with values copied from this object.
592
public virtual
ClaimsIdentity
Clone()
594
ClaimsIdentity
newIdentity = new ClaimsIdentity(m_instanceClaims);
1068
bool IsCircular(
ClaimsIdentity
subject)
1075
ClaimsIdentity
currSubject = subject;
1093
/// <param name="reader">a <see cref="BinaryReader"/> pointing to a <see cref="
ClaimsIdentity
"/>.</param>
1121
m_nameType =
ClaimsIdentity
.DefaultNameClaimType;
1130
m_roleType =
ClaimsIdentity
.DefaultRoleClaimType;
1201
if (!string.Equals(m_nameType,
ClaimsIdentity
.DefaultNameClaimType, StringComparison.Ordinal))
1207
if (!string.Equals(m_roleType,
ClaimsIdentity
.DefaultRoleClaimType, StringComparison.Ordinal))
1335
m_actor = (
ClaimsIdentity
)bf.Deserialize(stream, null, false);
system\security\claims\ClaimsPrincipal.cs (31)
73
List<
ClaimsIdentity
> m_identities = new List<
ClaimsIdentity
>();
76
static Func<IEnumerable<
ClaimsIdentity
>,
ClaimsIdentity
> s_identitySelector = SelectPrimaryIdentity;
86
static
ClaimsIdentity
SelectPrimaryIdentity(IEnumerable<
ClaimsIdentity
> identities)
96
ClaimsIdentity
selectedClaimsIdentity = null;
98
foreach (
ClaimsIdentity
identity in identities)
135
public static Func<IEnumerable<
ClaimsIdentity
>,
ClaimsIdentity
> PrimaryIdentitySelector
173
/// <param name="identities">Collection of <see cref="
ClaimsIdentity
"/> representing the subjects in the principal. </param>
175
public ClaimsPrincipal(IEnumerable<
ClaimsIdentity
> identities)
190
/// <param name="identity">Collection of <see cref="
ClaimsIdentity
"/> representing the subjects in the principal. </param>
201
ClaimsIdentity
ci = identity as
ClaimsIdentity
;
289
/// Provides and extensibility point for derived types to create a custom <see cref="
ClaimsIdentity
"/>.
293
/// <returns>a new <see cref="
ClaimsIdentity
"/>.</returns>
294
protected virtual
ClaimsIdentity
CreateClaimsIdentity(BinaryReader reader)
387
m_identities = new List<
ClaimsIdentity
>();
400
ClaimsIdentity
claimsIdentity = null;
403
claimsIdentity = (
ClaimsIdentity
)formatter.Deserialize(claimsIdentityStream, null, false);
443
foreach (
ClaimsIdentity
identity in m_identities)
477
public virtual void AddIdentity(
ClaimsIdentity
identity)
493
public virtual void AddIdentities(IEnumerable<
ClaimsIdentity
> identities)
512
foreach (
ClaimsIdentity
identity in Identities)
559
foreach (
ClaimsIdentity
identity in Identities)
591
foreach (
ClaimsIdentity
identity in Identities)
622
foreach (
ClaimsIdentity
identity in Identities)
732
/// Collection of <see cref="
ClaimsIdentity
" />
734
public virtual IEnumerable<
ClaimsIdentity
> Identities
864
foreach (
var
identity in m_identities)
system\security\claims\RoleClaimProvider.cs (2)
27
ClaimsIdentity
m_subject;
29
public RoleClaimProvider(string issuer, string[] roles,
ClaimsIdentity
subject)
system\security\principal\genericidentity.cs (3)
91
public override
ClaimsIdentity
Clone()
160
base.AddClaim(new Claim(base.NameClaimType, m_name, ClaimValueTypes.String,
ClaimsIdentity
.DefaultIssuer,
ClaimsIdentity
.DefaultIssuer, this));
system\security\principal\genericprincipal.cs (6)
68
ClaimsIdentity
firstNonNullIdentity = null;
69
foreach (
var
identity in base.Identities)
80
firstNonNullIdentity.ExternalClaims.Add(new RoleClaimProvider(
ClaimsIdentity
.DefaultIssuer, m_roles, firstNonNullIdentity).Claims);
94
ClaimsIdentity
claimsIdentity = identity as
ClaimsIdentity
;
108
claimsIdentity.ExternalClaims.Add(new RoleClaimProvider(
ClaimsIdentity
.DefaultIssuer, roles, claimsIdentity).Claims);
system\security\principal\windowsidentity.cs (3)
1190
internal WindowsIdentity(
ClaimsIdentity
claimsIdentity, IntPtr userToken)
1202
internal
ClaimsIdentity
CloneAsBase()
1210
public override
ClaimsIdentity
Clone()
system\security\principal\windowsprincipal.cs (4)
94
ClaimsIdentity
firstNonNullIdentity = null;
95
foreach (
var
identity in base.Identities)
171
foreach (
ClaimsIdentity
identity in Identities)
193
foreach (
ClaimsIdentity
identity in Identities)
System (1)
security\system\security\claims\DynamicRoleClaimProvider.cs (1)
16
public static void AddDynamicRoleClaims(
ClaimsIdentity
claimsIdentity, IEnumerable<Claim> claims)
System.IdentityModel (130)
System\IdentityModel\Claims\ClaimsConversionHelper.cs (5)
19
public static
ClaimsIdentity
CreateClaimsIdentityFromClaimSet(System.IdentityModel.Claims.ClaimSet claimset, string authenticationType)
29
issuer =
ClaimsIdentity
.DefaultIssuer;
43
ClaimsIdentity
claimsIdentity = new ClaimsIdentity(authenticationType);
59
public static
ClaimsIdentity
CreateClaimsIdentityFromClaimSet(System.IdentityModel.Claims.ClaimSet claimset)
90
issuer =
ClaimsIdentity
.DefaultIssuer;
System\IdentityModel\Claims\ClaimsHelper.cs (2)
46
/// Finds the UPN claim value in the provided <see cref="
ClaimsIdentity
" /> object for the purpose
54
public static string FindUpn(
ClaimsIdentity
claimsIdentity)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
536
public override
ClaimsIdentity
Clone()
System\IdentityModel\Diagnostics\AuthorizeTraceRecord.cs (1)
56
foreach (
ClaimsIdentity
ci in _claimsPrincipal.Identities )
System\IdentityModel\Diagnostics\ClaimsPrincipalTraceRecord.cs (2)
49
foreach (
ClaimsIdentity
ci in _claimsPrincipal.Identities )
58
private void WriteClaimsIdentity(
ClaimsIdentity
ci, XmlWriter writer )
System\IdentityModel\SecurityTokenService.cs (2)
648
protected abstract
ClaimsIdentity
GetOutputClaimsIdentity(ClaimsPrincipal principal, RequestSecurityToken request, Scope scope);
673
protected virtual
ClaimsIdentity
EndGetOutputClaimsIdentity(IAsyncResult result)
System\IdentityModel\Tokens\AuthorizationPolicy.cs (23)
30
List<
ClaimsIdentity
> _identityCollection = new List<
ClaimsIdentity
>();
50
public AuthorizationPolicy(
ClaimsIdentity
identity)
64
public AuthorizationPolicy(IEnumerable<
ClaimsIdentity
> identityCollection)
71
List<
ClaimsIdentity
> collection = new List<
ClaimsIdentity
>();
72
foreach (
ClaimsIdentity
identity in identityCollection)
83
public ReadOnlyCollection<
ClaimsIdentity
> IdentityCollection
165
List<
ClaimsIdentity
> identities = new List<
ClaimsIdentity
>();
166
foreach (
ClaimsIdentity
ici in _identityCollection)
175
List<
ClaimsIdentity
> identities;
176
identities = identitiesObj as List<
ClaimsIdentity
>;
178
foreach (
ClaimsIdentity
ici in _identityCollection)
188
private static ClaimsPrincipal CreateClaimsPrincipalFromIdentities(IEnumerable<
ClaimsIdentity
> identities)
190
ClaimsIdentity
selectedClaimsIdentity = SelectPrimaryIdentity(identities);
201
foreach (
ClaimsIdentity
identity in identities)
239
ClaimsIdentity
ici = identity as
ClaimsIdentity
;
256
private static
ClaimsIdentity
SelectPrimaryIdentity(IEnumerable<
ClaimsIdentity
> identities)
266
ClaimsIdentity
selectedClaimsIdentity = null;
268
foreach (
ClaimsIdentity
identity in identities)
System\IdentityModel\Tokens\BootstrapContext.cs (2)
12
/// Represents a serializable version of a token that can be attached to a <see cref="System.Security.Claims.
ClaimsIdentity
"/> to retain the
13
/// original token that was used to create <see cref="System.Security.Claims.
ClaimsIdentity
"/>
System\IdentityModel\Tokens\IssuerNameRegistry.cs (1)
49
return
ClaimsIdentity
.DefaultIssuer;
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (4)
64
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
69
public override ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SecurityToken token)
108
List<
ClaimsIdentity
> identities = new List<
ClaimsIdentity
>(1);
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (6)
143
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
147
public override ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SecurityToken token)
169
ClaimsIdentity
identity = new ClaimsIdentity(new Claim[] { new Claim(ClaimTypes.Rsa, rsaToken.Rsa.ToXmlString(false), ClaimValueTypes.RsaKeyValue,
ClaimsIdentity
.DefaultIssuer) }, AuthenticationTypes.Signature);
181
List<
ClaimsIdentity
> identities = new List<
ClaimsIdentity
>(1);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (22)
304
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
311
public override ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SecurityToken token)
369
ClaimsIdentity
claimsIdentity = null;
392
List<
ClaimsIdentity
> identities = new List<
ClaimsIdentity
>(1);
1090
if (!StringComparer.Ordinal.Equals(
ClaimsIdentity
.DefaultIssuer, claim.OriginalIssuer))
1117
/// Creates <see cref="Saml2AttributeStatement"/> from a <see cref="SecurityTokenDescriptor"/> and a <see cref="
ClaimsIdentity
"/>
1121
/// <param name="subject">The <see cref="
ClaimsIdentity
"/> that contains claims which will be converted to SAML Attributes.</param>
1124
protected virtual Saml2AttributeStatement CreateAttributeStatement(
ClaimsIdentity
subject, SecurityTokenDescriptor tokenDescriptor)
1202
/// <param name="subject">The delegate of this <see cref="
ClaimsIdentity
"/> will be serialized into a <see cref="Saml2Attribute"/>.</param>
1205
protected virtual void AddDelegateToAttributes(
ClaimsIdentity
subject, ICollection<Saml2Attribute> attributes, SecurityTokenDescriptor tokenDescriptor)
1606
/// Finds the UPN claim value in the provided <see cref="
ClaimsIdentity
" /> object for the purpose
1611
protected virtual string FindUpn(
ClaimsIdentity
claimsIdentity)
1768
protected virtual void ProcessSamlSubject(Saml2Subject assertionSubject,
ClaimsIdentity
subject, string issuer)
1816
protected virtual void ProcessAttributeStatement(Saml2AttributeStatement statement,
ClaimsIdentity
subject, string issuer)
1876
/// <param name="subject">The <see cref="
ClaimsIdentity
"/> that is the subject of this token.</param>
1881
protected virtual void SetDelegateFromAttribute(Saml2Attribute attribute,
ClaimsIdentity
subject, string issuer)
1963
protected virtual void ProcessAuthenticationStatement(Saml2AuthenticationStatement statement,
ClaimsIdentity
subject, string issuer)
1994
protected virtual void ProcessAuthorizationDecisionStatement(Saml2AuthorizationDecisionStatement statement,
ClaimsIdentity
subject, string issuer)
2004
protected virtual void ProcessStatement(Collection<Saml2Statement> statements,
ClaimsIdentity
subject, string issuer)
2048
protected virtual
ClaimsIdentity
CreateClaims(Saml2SecurityToken samlToken)
2055
ClaimsIdentity
subject = new ClaimsIdentity(AuthenticationTypes.Federation, SamlSecurityTokenRequirement.NameClaimType, SamlSecurityTokenRequirement.RoleClaimType);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (19)
418
ClaimsIdentity
subject,
509
ClaimsIdentity
subject,
713
if (!StringComparer.Ordinal.Equals(
ClaimsIdentity
.DefaultIssuer, claim.OriginalIssuer))
950
/// <returns>The <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
957
public override ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SecurityToken token)
1019
ClaimsIdentity
claimsIdentity = CreateClaims(samlToken);
1039
List<
ClaimsIdentity
> identities = new List<
ClaimsIdentity
>(1);
1074
/// Finds the UPN claim value in the provided <see cref="
ClaimsIdentity
" /> object for the purpose
1081
protected virtual string FindUpn(
ClaimsIdentity
claimsIdentity)
1101
protected virtual
ClaimsIdentity
CreateClaims(SamlSecurityToken samlSecurityToken)
1117
ClaimsIdentity
subject = new ClaimsIdentity(AuthenticationTypes.Federation,
1173
protected virtual void ProcessStatement(IList<SamlStatement> statements,
ClaimsIdentity
subject, string issuer)
1234
protected virtual void ProcessAttributeStatement(SamlAttributeStatement samlStatement,
ClaimsIdentity
subject, string issuer)
1320
private static Claim GetClaim(
ClaimsIdentity
subject, string claimType)
1347
protected virtual void ProcessSamlSubject(SamlSubject samlSubject,
ClaimsIdentity
subject, string issuer)
1389
protected virtual void ProcessAuthenticationStatement(SamlAuthenticationStatement samlStatement,
ClaimsIdentity
subject, string issuer)
1417
protected virtual void ProcessAuthorizationDecisionStatement(SamlAuthorizationDecisionStatement samlStatement,
ClaimsIdentity
subject, string issuer)
1430
protected virtual void SetDelegateFromAttribute(SamlAttribute attribute,
ClaimsIdentity
subject, string issuer)
System\IdentityModel\Tokens\SamlSecurityTokenRequirement.cs (1)
31
string _nameClaimType =
ClaimsIdentity
.DefaultNameClaimType;
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (2)
28
private
ClaimsIdentity
subject;
213
public
ClaimsIdentity
Subject
System\IdentityModel\Tokens\SecurityTokenElement.cs (6)
28
ReadOnlyCollection<
ClaimsIdentity
> _subject;
111
/// Gets the collection of <see cref="
ClaimsIdentity
"/> contained in the token.
114
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
115
public ReadOnlyCollection<
ClaimsIdentity
> GetIdentities()
131
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
133
protected virtual ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(XmlElement securityTokenXml, SecurityTokenHandlerCollection securityTokenHandlers)
System\IdentityModel\Tokens\SecurityTokenHandler.cs (2)
265
/// <returns>The <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
267
public virtual ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SecurityToken token)
System\IdentityModel\Tokens\SecurityTokenHandlerCollection.cs (2)
351
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
354
public ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SecurityToken token)
System\IdentityModel\Tokens\SessionSecurityToken.cs (11)
805
Collection<
ClaimsIdentity
> identities = new Collection<
ClaimsIdentity
>();
820
foreach (
ClaimsIdentity
identity in identities)
856
/// <param name="identities">A collection of <see cref="
ClaimsIdentity
"/> to populate.</param>
859
void ReadIdentities(XmlDictionaryReader dictionaryReader, SessionDictionary dictionary, Collection<
ClaimsIdentity
> identities)
899
ClaimsIdentity
ReadIdentity(XmlDictionaryReader dictionaryReader, SessionDictionary dictionary)
913
ClaimsIdentity
identity = null;
1229
void WriteIdentities(XmlDictionaryWriter dictionaryWriter, SessionDictionary dictionary, IEnumerable<
ClaimsIdentity
> identities)
1249
foreach (
ClaimsIdentity
ci in identities)
1264
void WriteIdentity(XmlDictionaryWriter dictionaryWriter, SessionDictionary dictionary,
ClaimsIdentity
identity)
1336
|| c.Type == ClaimTypes.Name && c.Issuer ==
ClaimsIdentity
.DefaultIssuer && c.ValueType == ClaimValueTypes.String)
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (7)
258
(principal.Identities as ReadOnlyCollection<
ClaimsIdentity
>)[0].BootstrapContext = new BootstrapContext(tokenDescriptor.Token, bootstrapTokenCollection[tokenDescriptor.Token.GetType()]);
575
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
578
public override ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SecurityToken token)
608
List<
ClaimsIdentity
> identitites = new List<
ClaimsIdentity
>(1);
629
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
633
public virtual ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SessionSecurityToken token, string endpointId)
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (4)
47
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
53
public override ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SecurityToken token)
121
List<
ClaimsIdentity
> identities = new List<
ClaimsIdentity
>(1);
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (5)
489
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
ClaimsIdentity
"/> representing the identities contained in the token.</returns>
496
public override ReadOnlyCollection<
ClaimsIdentity
> ValidateToken(SecurityToken token)
538
ClaimsIdentity
identity = null;
591
List<
ClaimsIdentity
> identities = new List<
ClaimsIdentity
>(1);
System.ServiceModel (30)
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
27
using ClaimsIdentity = System.Security.Claims.
ClaimsIdentity
;
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (21)
83
List<
ClaimsIdentity
> identities = new List<
ClaimsIdentity
>();
154
ReadOnlyCollection<
ClaimsIdentity
> tranportTokenIdentities = GetTransportTokenIdentities(transportToken);
204
static ReadOnlyCollection<
ClaimsIdentity
> GetTransportTokenIdentities(SecurityToken transportToken)
213
List<
ClaimsIdentity
> transportTokenIdentityCollection = new List<
ClaimsIdentity
>();
263
IEnumerable<
ClaimsIdentity
> tranportTokenIdentities,
321
/// <param name="tranportTokenIdentities">A collection of <see cref="
ClaimsIdentity
"/> to match.</param>
326
IEnumerable<
ClaimsIdentity
> tranportTokenIdentities,
383
foreach (
ClaimsIdentity
transportTokenIdentity in tranportTokenIdentities)
405
static ReadOnlyCollection<
ClaimsIdentity
> ConvertToIDFxIdentities(IList<IAuthorizationPolicy> authorizationPolicies,
418
List<
ClaimsIdentity
> identities = new List<
ClaimsIdentity
>();
502
static
ClaimsIdentity
ConvertToIDFxIdentity(IList<ClaimSet> claimSets, SecurityTokenHandlerConfiguration securityTokenHandlerConfiguration)
509
ClaimsIdentity
claimsIdentity = null;
561
static void AddAuthenticationMethod(
ClaimsIdentity
claimsIdentity, string authenticationMethod)
576
static void AddAuthenticationInstantClaim(
ClaimsIdentity
claimsIdentity, string authenticationInstant)
579
string issuerName =
ClaimsIdentity
.DefaultIssuer;
601
internal static
ClaimsIdentity
MergeClaims(
ClaimsIdentity
identity1,
ClaimsIdentity
identity2)
System\ServiceModel\Security\SecurityTokenAuthenticatorAdapter.cs (1)
50
IEnumerable<
ClaimsIdentity
> subjectCollection = null;
System\ServiceModel\Security\WrappedRsaSecurityTokenAuthenticator.cs (1)
56
IEnumerable<
ClaimsIdentity
> identities = null;
System\ServiceModel\Security\WrappedSaml11SecurityTokenAuthenticator.cs (1)
56
IEnumerable<
ClaimsIdentity
> identities = null;
System\ServiceModel\Security\WrappedSaml2SecurityTokenAuthenticator.cs (1)
67
IEnumerable<
ClaimsIdentity
> identities = null;
System\ServiceModel\Security\WrappedSessionSecurityTokenAuthenticator.cs (1)
101
IEnumerable<
ClaimsIdentity
> identities = null;
System\ServiceModel\Security\WrappedUserNameSecurityTokenAuthenticator.cs (1)
56
ReadOnlyCollection<
ClaimsIdentity
> identities = null;
System\ServiceModel\Security\WrappedX509SecurityTokenAuthenticator.cs (2)
55
ReadOnlyCollection<
ClaimsIdentity
> identities = null;
90
foreach (
ClaimsIdentity
identity in identities)
System.Web (8)
Security\FormsIdentity.cs (1)
89
public override
ClaimsIdentity
Clone()
Security\RoleClaimProvider.cs (2)
26
ClaimsIdentity
_subject;
28
public RoleClaimProvider(RolePrincipal rolePrincipal,
ClaimsIdentity
subject)
Security\RolePrincipal.cs (5)
182
ClaimsIdentity
claimsIdentity = null;
184
if (identity is
ClaimsIdentity
)
186
claimsIdentity = (identity as
ClaimsIdentity
).Clone();
198
void AttachRoleClaims(
ClaimsIdentity
claimsIdentity)
378
foreach (
var
claimsIdentity in base.Identities)