Class AbstractEnvironmentDecrypt

    • Field Detail

      • DECRYPTED_PROPERTY_SOURCE_NAME

        public static final String DECRYPTED_PROPERTY_SOURCE_NAME
        Name of the decrypted property source.
        See Also:
        Constant Field Values
      • ENCRYPTED_PROPERTY_PREFIX

        public static final String ENCRYPTED_PROPERTY_PREFIX
        Prefix indicating an encrypted value.
        See Also:
        Constant Field Values
      • logger

        protected org.apache.commons.logging.Log logger
    • Constructor Detail

      • AbstractEnvironmentDecrypt

        public AbstractEnvironmentDecrypt()
    • Method Detail

      • setFailOnError

        public void setFailOnError​(boolean failOnError)
        Strategy to determine how to handle exceptions during decryption.
        Parameters:
        failOnError - the flag value (default true)
      • isFailOnError

        public boolean isFailOnError()
      • decrypt

        protected Map<String,​Object> decrypt​(org.springframework.security.crypto.encrypt.TextEncryptor encryptor,
                                                   org.springframework.core.env.PropertySources propertySources)
      • merge

        protected Map<String,​Object> merge​(org.springframework.core.env.PropertySources propertySources)
      • merge

        protected void merge​(org.springframework.core.env.PropertySource<?> source,
                             Map<String,​Object> properties)
      • decrypt

        protected void decrypt​(org.springframework.security.crypto.encrypt.TextEncryptor encryptor,
                               Map<String,​Object> properties)
      • decrypt

        protected String decrypt​(org.springframework.security.crypto.encrypt.TextEncryptor encryptor,
                                 String key,
                                 String original)