Package com.saperion.util.mail
Class SmtpMailConfigurationStore
java.lang.Object
com.saperion.util.mail.SmtpMailConfigurationStore
This class is used to store the SMTP mail configuration.
It loads the configuration from a properties file and provides methods to access the configuration.
It also encrypts the refresh token and updates it in the properties file.
-
Method Summary
Modifier and TypeMethodDescriptionvoidencryptAndUpdateRefreshToken(String refreshToken) This method is used to encrypt the refresh token and update it in the properties file.static SmtpMailConfigurationStoreThis method is used to get the refresh token from the SmtpMailConfiguration.getScope()
-
Method Details
-
getInstance
-
encryptAndUpdateRefreshToken
This method is used to encrypt the refresh token and update it in the properties file.- Parameters:
refreshToken-
-
getRefreshToken
This method is used to get the refresh token from the SmtpMailConfiguration.- Returns:
- The refresh token
-
getTenantId
-
getTokenEndpoint
-
getClientId
-
getClientSecret
-
getScope
-