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 TypeMethodDescriptionbooleanThe client identifier.The client secret.inthashCode()loadDefaultCredentialConfigResource(com.google.gson.Gson gson) voidsetClientId(String clientId) The client identifier.voidsetClientSecret(String clientSecret) The client secret.toString()
-
Constructor Details
-
CredentialConfig
public CredentialConfig()
-
-
Method Details
-
loadDefaultCredentialConfigResource
public static OneDriveFactoryStateManager.CredentialConfig loadDefaultCredentialConfigResource(com.google.gson.Gson gson) throws IOException - Throws:
IOException
-
getClientId
The client identifier. -
getClientSecret
The client secret. -
setClientId
The client identifier. -
setClientSecret
The client secret. -
equals
-
hashCode
-
toString
-