org.wso2.carbon.device.mgt.mobile.windows.api.services.enrollment.util

## Class KeyStoreGenerator

- java.lang.Object
- - org.wso2.carbon.device.mgt.mobile.windows.api.services.enrollment.util.KeyStoreGenerator

-     public class KeyStoreGenerator
      extends Object

  Class for MDM Keystore operations.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `KeyStoreGenerator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static KeyStore` | `getKeyStore()` This method is for retrieving instance of Key Store.
    `static void` | `loadToStore(KeyStore keyStore, char[] keyStorePassword, String keyStorePath)` This method loads the MDM keystore.

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

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

- - ### Constructor Detail

    - #### KeyStoreGenerator

          public KeyStoreGenerator()

  - ### Method Detail

    - #### loadToStore

          public static void loadToStore(KeyStore keyStore,
                         char[] keyStorePassword,
                         String keyStorePath)
                                  throws KeyStoreGenerationException

      This method loads the MDM keystore.
      Parameters:
        `keyStore` - - MDM Keystore
        `keyStorePassword` - - Keystore Password
        `keyStorePath` - - Keystore path
      Throws:
        `KeyStoreGenerationException`

    - #### getKeyStore

          public static KeyStore getKeyStore()
                                      throws KeyStoreGenerationException

      This method is for retrieving instance of Key Store.
      Returns:
        Keystore object
      Throws:
        `KeyStoreGenerationException`

Copyright © 2017 WSO2. All rights reserved.