ClaimsIdentityFactory<TUser> Class

Creates a ClaimsIdentity from a User

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.Identity.ClaimsIdentityFactory<TUser>

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

'Declaration
Public Class ClaimsIdentityFactory(Of TUser As IUser) _
    Implements IClaimsIdentityFactory(Of TUser)
'Usage
Dim instance As ClaimsIdentityFactory(Of TUser)
public class ClaimsIdentityFactory<TUser> : IClaimsIdentityFactory<TUser>
where TUser : IUser
generic<typename TUser>
where TUser : IUser 
public ref class ClaimsIdentityFactory : IClaimsIdentityFactory<TUser>
type ClaimsIdentityFactory<'TUser when 'TUser : IUser> =  
    class 
        interface IClaimsIdentityFactory<'TUser>
    end
JScript does not support generic types and methods.

Type Parameters

  • TUser

The ClaimsIdentityFactory<TUser> type exposes the following members.

Constructors

  Name Description
Public method ClaimsIdentityFactory<TUser> Constructor

Top

Properties

  Name Description
Public property RoleClaimType Claim type used for role claims
Public property UserIdClaimType Claim type used for the user id
Public property UserNameClaimType Claim type used for the user name

Top

Methods

  Name Description
Public method CreateAsync Create a ClaimsIdentity from a user
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

Microsoft.AspNet.Identity Namespace