Class EncryptionManager

java.lang.Object
com.atlassian.mail.server.managers.jira.EncryptionManager

public class EncryptionManager extends Object
Encrypts and decrypts MailServer password.
  • Field Details

  • Constructor Details

    • EncryptionManager

      public EncryptionManager()
    • EncryptionManager

      public EncryptionManager(BuildUtilsInfo buildUtilsInfo)
  • Method Details

    • encryptPassword

      public Pair<String,String> encryptPassword(String plainPassword, String cipherType)
      Returns encrypted password paired with cipher type if encryption is allowed. Encryption is allowed only in after corresponding upgrade task is run.
    • decryptPassword

      public String decryptPassword(String encryptedPassword, String cipherType)
      Decrypts encrypted password if possible or returns it not decrypted.