Class EncryptableSystemEnvironmentPropertySourceWrapper

java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<Map<String,Object>>
org.springframework.core.env.MapPropertySource
org.springframework.core.env.SystemEnvironmentPropertySource
com.ulisesbocchio.jasyptspringboot.wrapper.EncryptableSystemEnvironmentPropertySourceWrapper
All Implemented Interfaces:
EncryptablePropertySource<Map<String,Object>>, org.springframework.boot.origin.OriginLookup<String>

public class EncryptableSystemEnvironmentPropertySourceWrapper extends org.springframework.core.env.SystemEnvironmentPropertySource implements EncryptablePropertySource<Map<String,Object>>

EncryptableSystemEnvironmentPropertySourceWrapper class.

Version:
$Id: $Id
Author:
Tomas Tulka (@ttulka), Uli
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource

    org.springframework.core.env.PropertySource.StubPropertySource
  • Field Summary

    Fields inherited from class org.springframework.core.env.PropertySource

    logger, name, source
  • Constructor Summary

    Constructors
    Constructor
    Description
    EncryptableSystemEnvironmentPropertySourceWrapper(org.springframework.core.env.SystemEnvironmentPropertySource delegate, EncryptablePropertyResolver resolver, EncryptablePropertyFilter filter)
    Constructor for EncryptableSystemEnvironmentPropertySourceWrapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.core.env.PropertySource<Map<String,Object>>
    getDelegate.
    org.springframework.boot.origin.Origin
    getProperty.
     
    void
    setWrapGetSource(boolean wrapGetSource)
    Set whether getSource() should wrap the source Map in an EncryptableMapWrapper.

    Methods inherited from class org.springframework.core.env.SystemEnvironmentPropertySource

    containsProperty, resolvePropertyName

    Methods inherited from class org.springframework.core.env.MapPropertySource

    getPropertyNames

    Methods inherited from class org.springframework.core.env.PropertySource

    equals, getName, hashCode, named, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.ulisesbocchio.jasyptspringboot.EncryptablePropertySource

    getPrefix, getProperty, isImmutable, refresh
  • Constructor Details

  • Method Details

    • getProperty

      public Object getProperty(@NonNull String name)

      getProperty.

      Specified by:
      getProperty in interface EncryptablePropertySource<Map<String,Object>>
      Overrides:
      getProperty in class org.springframework.core.env.SystemEnvironmentPropertySource
      Parameters:
      name - a String object
      Returns:
      a Object object
    • getDelegate

      public org.springframework.core.env.PropertySource<Map<String,Object>> getDelegate()

      getDelegate.

      Specified by:
      getDelegate in interface EncryptablePropertySource<Map<String,Object>>
      Returns:
      a PropertySource object
    • getOrigin

      public org.springframework.boot.origin.Origin getOrigin(String key)
      Specified by:
      getOrigin in interface EncryptablePropertySource<Map<String,Object>>
      Specified by:
      getOrigin in interface org.springframework.boot.origin.OriginLookup<String>
    • setWrapGetSource

      public void setWrapGetSource(boolean wrapGetSource)

      Set whether getSource() should wrap the source Map in an EncryptableMapWrapper.

      Parameters:
      wrapGetSource - true to wrap the source Map
    • getSource

      @NonNull public Map<String,Object> getSource()
      Overrides:
      getSource in class org.springframework.core.env.PropertySource<Map<String,Object>>