Package com.independentsoft.graph.files

# Class Identity

java.lang.Object
com.independentsoft.graph.files.Identity

public class Identity extends Object
Represents an identity of an actor in Microsoft Graph.

An Identity describes a single actor – such as a user, device, or application – that is associated with an action or resource. Identities are typically returned as part of an `IdentitySet`, for example to indicate who created or last modified a drive item.

Example usage:

     Identity user = identitySet.getUser();

     if (user != null)
     {
         System.out.println(user.getDisplayName());
         System.out.println(user.getId());
     }

Since:
  1.0
See Also:
  identity resource type, `IdentitySet`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Identity()`
  `Identity​(JsonObject jsonObject)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getDisplayName()`
  `String`
  `getId()`
  `String`
  `getTenantId()`
  `ThumbnailSet`
  `getThumbnails()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Identity

    public Identity()

  - ### Identity

    public Identity​(JsonObject jsonObject)

- ## Method Details

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getId

    public String getId()

  - ### getDisplayName

    public String getDisplayName()

  - ### getTenantId

    public String getTenantId()

  - ### getThumbnails

    public ThumbnailSet getThumbnails()