org.wso2.carbon.device.mgt.mobile.windows.api.common.util

## Class DeviceUtil

- java.lang.Object
- - org.wso2.carbon.device.mgt.mobile.windows.api.common.util.DeviceUtil

-     public class DeviceUtil
      extends Object

  Class for generate random token for XCEP and WSTEP.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DeviceUtil()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `generateRandomToken()`
    `static Object` | `getCacheEntry(String token)`
    `static void` | `persistChallengeToken(String token, String deviceID, String username)`
    `static void` | `removeToken(String token)`

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

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

- - ### Constructor Detail

    - #### DeviceUtil

          public DeviceUtil()

  - ### Method Detail

    - #### generateRandomToken

          public static String generateRandomToken()

    - #### persistChallengeToken

          public static void persistChallengeToken(String token,
                                   String deviceID,
                                   String username)

    - #### removeToken

          public static void removeToken(String token)

    - #### getCacheEntry

          public static Object getCacheEntry(String token)

Copyright © 2017 WSO2. All rights reserved.