ServiceUser Class
The ServiceUser class is an IPrincipal implementation which provides information about how the user is authenticated using any of the supported authentication mechanisms as well as the AuthorizationLevel at which the user is authenticated.
Namespace: Microsoft.WindowsAzure.Mobile.Service.Security
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
Inheritance Hierarchy
System.Object
System.Security.Claims.ClaimsPrincipal
Microsoft.WindowsAzure.Mobile.Service.Security.ServiceUser
Syntax
public class ServiceUser : ClaimsPrincipal
public ref class ServiceUser : ClaimsPrincipal
type ServiceUser =
class
inherit ClaimsPrincipal
end
Public Class ServiceUser
Inherits ClaimsPrincipal
Constructors
Name | Description | |
---|---|---|
![]() |
ServiceUser() | Initializes a new instance of the ServiceUser class. |
![]() |
ServiceUser(IEnumerable<ClaimsIdentity>) | Initializes a new instance of the ServiceUser class from the specified identities. |
![]() |
ServiceUser(IIdentity) | Initializes a new instance of the ServiceUser class from the specified identity. |
Properties
Name | Description | |
---|---|---|
![]() |
Claims | (Inherited from ClaimsPrincipal.) |
![]() |
Id | Gets or sets the user ID |
![]() |
Identities | (Inherited from ClaimsPrincipal.) |
![]() |
Identity | (Inherited from ClaimsPrincipal.) |
![]() |
Level | Gets or sets the AuthorizationLevel this user has been granted. |
Methods
Name | Description | |
---|---|---|
![]() |
AddIdentities(IEnumerable<ClaimsIdentity>) | (Inherited from ClaimsPrincipal.) |
![]() |
AddIdentity(ClaimsIdentity) | (Inherited from ClaimsPrincipal.) |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
FindAll(Predicate<Claim>) | (Inherited from ClaimsPrincipal.) |
![]() |
FindAll(String) | (Inherited from ClaimsPrincipal.) |
![]() |
FindFirst(Predicate<Claim>) | (Inherited from ClaimsPrincipal.) |
![]() |
FindFirst(String) | (Inherited from ClaimsPrincipal.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetIdentitiesAsync() | Gets the collection of provider specific identities for this user. |
![]() |
GetObjectData(SerializationInfo, StreamingContext) | (Inherited from ClaimsPrincipal.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
HasClaim(Predicate<Claim>) | (Inherited from ClaimsPrincipal.) |
![]() |
HasClaim(String, String) | (Inherited from ClaimsPrincipal.) |
![]() |
IsInRole(String) | (Inherited from ClaimsPrincipal.) |
![]() |
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.WindowsAzure.Mobile.Service.Security Namespace
Return to top