docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License

    • Unity.DigitalTwins.Identity
      • AuthenticationState
      • BrowserAuthenticatedAccessTokenProvider
      • CommandLineAccessTokenProvider
      • DeviceToken
      • HttpPkceRequestHandler
      • IActivatePlatformSupport
      • IAuthenticator
      • IInteractiveAuthenticator
      • IPkceConfigurationProvider
      • IPkcePlatformSupport
      • IPkceRequestHandler
      • IPreAuthenticatedAccessTokenProvider
      • IUserInfoProvider
      • LaunchArgumentsParser
      • LicenseInfo
      • LicenseType
      • OrganizationInfo
      • PersonalAccessTokenProvider
      • PkceAuthenticator
      • PkceConfiguration
      • PkceConfigurationProvider
      • PreAuthenticatedHostAccessTokenProvider
      • UserInfo
      • UserInfoProvider
    • Unity.DigitalTwins.Identity.Runtime
      • AndroidActivatePlatformSupport
      • AndroidPkcePlatformSupport
      • CompositeAuthenticator
      • EditorActivateFromUrl
      • EditorActivatePlatformSupport
      • EditorPkcePlatformSupport
      • IosActivatePlatformSupport
      • IosPkcePlatformSupport
      • LinuxActivatePlatformSupport
      • LinuxPkcePlatformSupport
      • OsxActivatePlatformSupport
      • OsxPkcePlatformSupport
      • PlatformSupportFactory
      • WebglActivatePlatformSupport
      • WebglPkcePlatformSupport
      • WindowsActivatePlatformSupport
      • WindowsPkcePlatformSupport

    Class DeviceToken

    This class holds the token information related to a user authenticated session.

    Inheritance
    Object
    DeviceToken
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.DigitalTwins.Identity
    Assembly: solution.dll
    Syntax
    public class DeviceToken

    Constructors

    DeviceToken(String, String, DateTime)

    Creates a DeviceToken.

    Declaration
    public DeviceToken(string accessToken, string refreshToken, DateTime accessTokenExpiryDateTime)
    Parameters
    Type Name Description
    String accessToken

    The string value of the issued access token.

    String refreshToken

    The string value of the issued refresh token.

    DateTime accessTokenExpiryDateTime

    The DateTime value of the expiry date of the issued access token.

    DeviceToken(String, String, DateTime, String)

    Creates a DeviceToken.

    Declaration
    public DeviceToken(string accessToken, string refreshToken, DateTime accessTokenExpiryDateTime, string oldRefreshToken)
    Parameters
    Type Name Description
    String accessToken

    The string value of the issued access token.

    String refreshToken

    The string value of the issued refresh token.

    DateTime accessTokenExpiryDateTime

    The DateTime value of the expiry date of the issued access token.

    String oldRefreshToken

    The string value of the previously issued refresh token. This value will be used if provided refreshToken is null or empty.

    DeviceToken(String, String, Int32)

    Creates a DeviceToken.

    Declaration
    public DeviceToken(string accessToken, string refreshToken, int accessTokenExpiryInSeconds)
    Parameters
    Type Name Description
    String accessToken

    The string value of the issued access token.

    String refreshToken

    The string value of the issued refresh token.

    Int32 accessTokenExpiryInSeconds

    The int value in seconds of the remaining time before expiratoion of the issued access token.

    DeviceToken(String, String, Int32, String)

    Creates a DeviceToken.

    Declaration
    public DeviceToken(string accessToken, string refreshToken, int accessTokenExpiryInSeconds, string oldRefreshToken)
    Parameters
    Type Name Description
    String accessToken

    The string value of the issued access token.

    String refreshToken

    The string value of the issued refresh token.

    Int32 accessTokenExpiryInSeconds

    The int value in seconds of the remaining time before expiratoion of the issued access token.

    String oldRefreshToken

    The string value of the previously issued refresh token. This value will be used if provided refreshToken is null or empty.

    Properties

    AccessToken

    The token used to request authenticated access to cloud endpoints.

    Declaration
    public string AccessToken { get; }
    Property Value
    Type Description
    String

    AccessTokenExpiresIn

    The TimeSpan value before the current DeviceToken expires.

    Declaration
    public TimeSpan AccessTokenExpiresIn { get; }
    Property Value
    Type Description
    TimeSpan

    RefreshToken

    The token used on the refresh token cloud endpoint to generate a new DeviceToken.

    Declaration
    public string RefreshToken { get; }
    Property Value
    Type Description
    String
    Back to top Generated by DocFX
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023