| java.lang.Object |
| ↳ |
org.mule.module.hubspot.credential.HubSpotCredentialsManager |
Class Overview
Class that handles the credentials of the users logged in through the HubSpot connector
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
private
ObjectStore
credentialsMap
Public Constructors
public
HubSpotCredentialsManager
(ObjectStore objStore)
Public Methods
public
OAuthCredentials
getCredentials
(String userId)
Return the credentials corresponding to a user
Parameters
| userId
| The ID of the user of which we want to get the credentials |
public
String
getCredentialsAccessToken
(String userId)
Return the accessToken in the credentials corresponding to a user
Parameters
| userId
| The ID of the user of which we want to get the credentials |
Returns
- The accessToken of the user
public
String
getCredentialsClientId
(String userId)
Retrieves the clientId from the credentials for the tenant
Parameters
| userId
| The UserId that has the credentials |
public
String
getCredentialsHubId
(String userId)
public
Boolean
getCredentialsOfflineScope
(String userId)
public
boolean
hasUserAccessToken
(String userId)
Indicates if certain user has or not credentials
Parameters
| userId
| The ID of the user |
Returns
- true if the user has credentials, false otherwise
public
void
setCredentias
(OAuthCredentials credentials)
Store the credentials for the user. The user ID is inside the Credentials object