public class EmailClientAccountOauthCredentials extends EmailClientAccountCredentials
Constructor and Description |
---|
EmailClientAccountOauthCredentials() |
EmailClientAccountOauthCredentials(String login,
String clientId,
String clientSecret,
String refreshToken,
String requestUrl)
Initializes a new instance of the EmailClientAccountOauthCredentials
|
Modifier and Type | Method and Description |
---|---|
EmailClientAccountOauthCredentials |
clientId(String clientId)
Set clientId and return this.
|
EmailClientAccountOauthCredentials |
clientSecret(String clientSecret)
Set clientSecret and return this.
|
boolean |
equals(Object o) |
String |
getClientId()
The client ID obtained from the Google Cloud Console during application registration.
|
String |
getClientSecret()
The client secret obtained during application registration.
|
String |
getRefreshToken()
OAuth 2.0 refresh token
|
String |
getRequestUrl()
The url to obtain access token.
|
int |
hashCode() |
EmailClientAccountOauthCredentials |
refreshToken(String refreshToken)
Set refreshToken and return this.
|
EmailClientAccountOauthCredentials |
requestUrl(String requestUrl)
Set requestUrl and return this.
|
void |
setClientId(String clientId)
Set clientId.
|
void |
setClientSecret(String clientSecret)
Set clientSecret.
|
void |
setRefreshToken(String refreshToken)
Set refreshToken.
|
void |
setRequestUrl(String requestUrl)
Set requestUrl.
|
String |
toString() |
getDiscriminator, getLogin, login, setDiscriminator, setLogin
public EmailClientAccountOauthCredentials()
public EmailClientAccountOauthCredentials(String login, String clientId, String clientSecret, String refreshToken, String requestUrl)
login
- Email client account loginclientId
- The client ID obtained from the Google Cloud Console during application registration.clientSecret
- The client secret obtained during application registration.refreshToken
- OAuth 2.0 refresh tokenrequestUrl
- The url to obtain access token. If not specified, will try to discover from email client account host.public EmailClientAccountOauthCredentials clientId(String clientId)
clientId
- The client ID obtained from the Google Cloud Console during application registration.public String getClientId()
public void setClientId(String clientId)
clientId
- The client ID obtained from the Google Cloud Console during application registration.public EmailClientAccountOauthCredentials clientSecret(String clientSecret)
clientSecret
- The client secret obtained during application registration.public String getClientSecret()
public void setClientSecret(String clientSecret)
clientSecret
- The client secret obtained during application registration.public EmailClientAccountOauthCredentials refreshToken(String refreshToken)
refreshToken
- OAuth 2.0 refresh tokenpublic String getRefreshToken()
public void setRefreshToken(String refreshToken)
refreshToken
- OAuth 2.0 refresh tokenpublic EmailClientAccountOauthCredentials requestUrl(String requestUrl)
requestUrl
- The url to obtain access token. If not specified, will try to discover from email client account host.public String getRequestUrl()
public void setRequestUrl(String requestUrl)
requestUrl
- The url to obtain access token. If not specified, will try to discover from email client account host.public boolean equals(Object o)
equals
in class EmailClientAccountCredentials
public int hashCode()
hashCode
in class EmailClientAccountCredentials
public String toString()
toString
in class EmailClientAccountCredentials
Copyright © 2020. All rights reserved.