public class HubSpotCredentialsManager extends Object
| Constructor and Description |
|---|
HubSpotCredentialsManager(org.mule.api.store.ObjectStore objStore) |
| Modifier and Type | Method and Description |
|---|---|
OAuthCredentials |
getCredentials(String userId)
Return the credentials corresponding to a user
|
String |
getCredentialsAccessToken(String userId)
Return the accessToken in the credentials corresponding to a user
|
String |
getCredentialsClientId(String userId)
Retrieves the clientId from the credentials for the tenant
|
String |
getCredentialsHubId(String userId) |
Boolean |
getCredentialsOfflineScope(String userId) |
boolean |
hasUserAccessToken(String userId)
Indicates if certain user has or not credentials
|
void |
setCredentias(OAuthCredentials credentials)
Store the credentials for the user.
|
public HubSpotCredentialsManager(org.mule.api.store.ObjectStore objStore)
public OAuthCredentials getCredentials(String userId) throws HubSpotConnectorNoAccessTokenException
userId - The ID of the user of which we want to get the credentialsOAuthCredentialsHubSpotConnectorNoAccessTokenException - If the user does not have credentials, throw this exceptionpublic String getCredentialsAccessToken(String userId) throws HubSpotConnectorNoAccessTokenException
userId - The ID of the user of which we want to get the credentialsHubSpotConnectorNoAccessTokenException - If the user does not have credentials, throw this exceptionpublic void setCredentias(OAuthCredentials credentials) throws HubSpotConnectorException
credentials - The credentials of the user OAuthCredentialsHubSpotConnectorException - If the value cannot be saved or overwriten in the Object Storepublic String getCredentialsClientId(String userId) throws HubSpotConnectorNoAccessTokenException
userId - The UserId that has the credentialsHubSpotConnectorNoAccessTokenException - If the userId does not have credentials storedpublic String getCredentialsHubId(String userId) throws HubSpotConnectorNoAccessTokenException
public Boolean getCredentialsOfflineScope(String userId) throws HubSpotConnectorNoAccessTokenException
public boolean hasUserAccessToken(String userId)
userId - The ID of the userCopyright © 2010–2016. All rights reserved.