Package com.amilesend.onedrive
Class OneDriveFactoryStateManager.CredentialConfig
java.lang.Object
com.amilesend.onedrive.OneDriveFactoryStateManager.CredentialConfig
- Enclosing class:
OneDriveFactoryStateManager<T extends OneDrive>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()loadDefaultCredentialConfigResource(com.google.gson.Gson gson) voidsetClientId(String clientId) voidsetClientSecret(String clientSecret) toString()
-
Constructor Details
-
CredentialConfig
public CredentialConfig()
-
-
Method Details
-
loadDefaultCredentialConfigResource
public static OneDriveFactoryStateManager.CredentialConfig loadDefaultCredentialConfigResource(com.google.gson.Gson gson) throws IOException - Throws:
IOException
-
getClientId
-
getClientSecret
-
setClientId
-
setClientSecret
-
equals
-
hashCode
public int hashCode() -
toString
-