ClaimsIdentityFactory<TUser> Class
Creates a ClaimsIdentity from a User
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.ClaimsIdentityFactory<TUser, TKey>
Microsoft.AspNet.Identity.ClaimsIdentityFactory<TUser>
Syntax
public class ClaimsIdentityFactory<TUser> : ClaimsIdentityFactory<TUser, string>
where TUser : class, IUser<string>
generic<typename TUser>
where TUser : ref class, IUser<String^>
public ref class ClaimsIdentityFactory : ClaimsIdentityFactory<TUser, String^>
type ClaimsIdentityFactory<'TUser when 'TUser : not struct and IUser<string>> =
class
inherit ClaimsIdentityFactory<'TUser, string>
end
Public Class ClaimsIdentityFactory(Of TUser As { Class, IUser(Of String) })
Inherits ClaimsIdentityFactory(Of TUser, String)
Type Parameters
- TUser
Constructors
Name | Description | |
---|---|---|
ClaimsIdentityFactory<TUser>() | Constructor |
Properties
Name | Description | |
---|---|---|
RoleClaimType | Gets or sets the claim type used for role claims.(Inherited from ClaimsIdentityFactory<TUser, TKey>.) |
|
SecurityStampClaimType | Gets or sets the claim type used for the user security stamp.(Inherited from ClaimsIdentityFactory<TUser, TKey>.) |
|
UserIdClaimType | Gets or sets the claim type used for the user identity.(Inherited from ClaimsIdentityFactory<TUser, TKey>.) |
|
UserNameClaimType | Gets or sets the claim type used for the user name.(Inherited from ClaimsIdentityFactory<TUser, TKey>.) |
Methods
Name | Description | |
---|---|---|
ConvertIdToString(TKey) | Converts the key to a string. By default just calls ToString() method.(Inherited from ClaimsIdentityFactory<TUser, TKey>.) |
|
CreateAsync(UserManager<TUser, TKey>, TUser, String) | Asynchronously creates a ClaimsIdentity from a user.(Inherited from ClaimsIdentityFactory<TUser, TKey>.) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top