Class SmtpMailConfigurationStore

java.lang.Object
com.saperion.util.mail.SmtpMailConfigurationStore

public class SmtpMailConfigurationStore extends Object
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 Details

    • getInstance

      public static SmtpMailConfigurationStore getInstance()
    • encryptAndUpdateRefreshToken

      public void encryptAndUpdateRefreshToken(String refreshToken)
      This method is used to encrypt the refresh token and update it in the properties file.
      Parameters:
      refreshToken -
    • getRefreshToken

      public String getRefreshToken()
      This method is used to get the refresh token from the SmtpMailConfiguration.
      Returns:
      The refresh token
    • getTenantId

      public String getTenantId()
    • getTokenEndpoint

      public String getTokenEndpoint()
    • getClientId

      public String getClientId()
    • getClientSecret

      public String getClientSecret()
    • getScope

      public String getScope()