Class NonDecryptingPasswordEncrypter

java.lang.Object
com.xebialabs.deployit.util.PasswordEncrypter
com.xebialabs.xlrelease.service.NonDecryptingPasswordEncrypter
All Implemented Interfaces:
com.xebialabs.deployit.encryption.IPasswordEncrypter

public class NonDecryptingPasswordEncrypter extends com.xebialabs.deployit.util.PasswordEncrypter
This is XLR specific password encrypter. Previous versions of XLR returned decrypted properties. This implementation will NOT return decrypted properties unless the value is variable placeholder (i.e. contains ${...}), or empty value (i.e. missing password is not a password). The idea is to have all properties encrypted by default and to decrypt them only in very isolated places (i.e. when executing scripts of custom script tasks, script tasks, triggers or tile scripts). In those rare places scripts should have access only to the password values of the current release and globally shared configuration objects that are referenced (like JIRA servers and such).
  • Constructor Details

    • NonDecryptingPasswordEncrypter

      public NonDecryptingPasswordEncrypter()
  • Method Details

    • ensureDecrypted

      public String ensureDecrypted(String text)
      Specified by:
      ensureDecrypted in interface com.xebialabs.deployit.encryption.IPasswordEncrypter
      Overrides:
      ensureDecrypted in class com.xebialabs.deployit.util.PasswordEncrypter