Package com.xebialabs.xlrelease.service
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 Summary
Constructors -
Method Summary
Methods inherited from class com.xebialabs.deployit.util.PasswordEncrypter
decrypt, encrypt, ensureEncrypted, getInstance, getKeyFingerprint, getKeyFingerprint, init, init, isEncoded, isEncodedAndDecryptable, isEncrypted, prefix
-
Constructor Details
-
NonDecryptingPasswordEncrypter
public NonDecryptingPasswordEncrypter()
-
-
Method Details
-
ensureDecrypted
- Specified by:
ensureDecryptedin interfacecom.xebialabs.deployit.encryption.IPasswordEncrypter- Overrides:
ensureDecryptedin classcom.xebialabs.deployit.util.PasswordEncrypter
-