Class OneDriveFactoryStateManager.CredentialConfig

java.lang.Object
com.amilesend.onedrive.OneDriveFactoryStateManager.CredentialConfig
Enclosing class:
OneDriveFactoryStateManager<T extends OneDrive>

public static class OneDriveFactoryStateManager.CredentialConfig extends Object
Defines the consuming application's client credentials.

The clientId and clientSecret are obtained from the Azure application registration console. See the API documentation for more information.

Once your client identifier and secret are obtain, you may bundle your credentials as a JSON formatted text file within your JAR so that it's accessible via a resource. By default, you may save your credentials as ms-onedrive-credentials.json bundled as a JAR resource. Example format:

 {
   "clientId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
   "clientSecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
 }
 
  • Constructor Details

    • CredentialConfig

      public CredentialConfig()
  • Method Details