Class DefaultLazyPropertyDetector

    • Constructor Detail

      • DefaultLazyPropertyDetector

        public DefaultLazyPropertyDetector​(org.springframework.core.env.ConfigurableEnvironment environment,
                                           String customDetectorBeanName,
                                           boolean isCustom,
                                           org.springframework.beans.factory.BeanFactory bf)
      • DefaultLazyPropertyDetector

        public DefaultLazyPropertyDetector​(org.springframework.core.env.ConfigurableEnvironment environment)
    • Method Detail

      • isEncrypted

        public boolean isEncrypted​(String property)
        Description copied from interface: EncryptablePropertyDetector
        Returns whether a property is encrypted or not. Usually based on prefixes and suffixes.
        Specified by:
        isEncrypted in interface EncryptablePropertyDetector
        Parameters:
        property - the property value to check whether is encrypted or not.
        Returns:
        true if the property is encrypted.
      • unwrapEncryptedValue

        public String unwrapEncryptedValue​(String property)
        Description copied from interface: EncryptablePropertyDetector
        Returns the portion of the property that is actually the encrypted value without any extra metadata such as prefixes and suffixes.
        Specified by:
        unwrapEncryptedValue in interface EncryptablePropertyDetector
        Parameters:
        property - the property value to extract the encrypted value.
        Returns:
        the encrypted portion of the property value.