ClaimsIdentityFactory<TUser, TKey> 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, TKey> : IClaimsIdentityFactory<TUser, TKey>
where TUser : class, IUser<TKey>
where TKey : object, IEquatable<TKey>
generic<typename TUser, typename TKey>
where TUser : ref class, IUser<TKey>
where TKey : Object, IEquatable<TKey>
public ref class ClaimsIdentityFactory : IClaimsIdentityFactory<TUser, TKey>
type ClaimsIdentityFactory<'TUser, 'TKey when 'TUser : not struct and IUser<'TKey> when 'TKey : Object and IEquatable<'TKey>> =
class
interface IClaimsIdentityFactory<'TUser, 'TKey>
end
Public Class ClaimsIdentityFactory(Of TUser As { Class, IUser(Of TKey) }, TKey As { Object, IEquatable(Of TKey) })
Implements IClaimsIdentityFactory(Of TUser, TKey)
Type Parameters
- TUser
The type of the user.
- TKey
The type of the key.
Constructors
Name | Description | |
---|---|---|
![]() |
ClaimsIdentityFactory<TUser, TKey>() | Initializes a new instance of the ClaimsIdentityFactory<TUser, TKey> class. |
Properties
Name | Description | |
---|---|---|
![]() |
RoleClaimType | Gets or sets the claim type used for role claims. |
![]() |
SecurityStampClaimType | Gets or sets the claim type used for the user security stamp. |
![]() |
UserIdClaimType | Gets or sets the claim type used for the user identity. |
![]() |
UserNameClaimType | Gets or sets the claim type used for the user name. |
Methods
Name | Description | |
---|---|---|
![]() |
ConvertIdToString(TKey) | Converts the key to a string. By default just calls ToString() method. |
![]() |
CreateAsync(UserManager<TUser, TKey>, TUser, String) | Asynchronously creates a ClaimsIdentity from a user. |
![]() |
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