Share via


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
System_CAPS_pubmethod ServiceUser()

Initializes a new instance of the ServiceUser class.

System_CAPS_pubmethod ServiceUser(IEnumerable<ClaimsIdentity>)

Initializes a new instance of the ServiceUser class from the specified identities.

System_CAPS_pubmethod ServiceUser(IIdentity)

Initializes a new instance of the ServiceUser class from the specified identity.

Properties

Name Description
System_CAPS_pubproperty Claims

(Inherited from ClaimsPrincipal.)

System_CAPS_pubproperty Id

Gets or sets the user ID

System_CAPS_pubproperty Identities

(Inherited from ClaimsPrincipal.)

System_CAPS_pubproperty Identity

(Inherited from ClaimsPrincipal.)

System_CAPS_pubproperty Level

Gets or sets the AuthorizationLevel this user has been granted.

Methods

Name Description
System_CAPS_pubmethod AddIdentities(IEnumerable<ClaimsIdentity>)

(Inherited from ClaimsPrincipal.)

System_CAPS_pubmethod AddIdentity(ClaimsIdentity)

(Inherited from ClaimsPrincipal.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod FindAll(Predicate<Claim>)

(Inherited from ClaimsPrincipal.)

System_CAPS_pubmethod FindAll(String)

(Inherited from ClaimsPrincipal.)

System_CAPS_pubmethod FindFirst(Predicate<Claim>)

(Inherited from ClaimsPrincipal.)

System_CAPS_pubmethod FindFirst(String)

(Inherited from ClaimsPrincipal.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetIdentitiesAsync()

Gets the collection of provider specific identities for this user.

System_CAPS_protmethod GetObjectData(SerializationInfo, StreamingContext)

(Inherited from ClaimsPrincipal.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod HasClaim(Predicate<Claim>)

(Inherited from ClaimsPrincipal.)

System_CAPS_pubmethod HasClaim(String, String)

(Inherited from ClaimsPrincipal.)

System_CAPS_pubmethod IsInRole(String)

(Inherited from ClaimsPrincipal.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod 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