Class 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).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String ensureDecrypted​(java.lang.String text)  
      • Methods inherited from class com.xebialabs.deployit.util.PasswordEncrypter

        decrypt, encrypt, ensureEncrypted, getInstance, getKeyFingerprint, getKeyFingerprint, init, init, isEncoded, isEncodedAndDecryptable, isEncrypted, prefix
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NonDecryptingPasswordEncrypter

        public NonDecryptingPasswordEncrypter()
    • Method Detail

      • ensureDecrypted

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