Annotation that enables Jasypt for properties decryption by annotating {@link org.springframework.context.annotation.Configuration} classes.
* Only one occurrence of this annotation is needed.
- *
+ *
*
This works well in conjunction with the {@link org.springframework.context.annotation.PropertySource} annotation.
* For instance:
*
@@ -35,7 +35,7 @@
* not only the ones defined with the {@link org.springframework.context.annotation.PropertySource} annotation, but also
* all system properties, command line properties, and those auto-magically picked up from application.properties and application.yml
* if they exist.
- *
+ *
*
This Configuration class basically registers a {@link org.springframework.beans.factory.config.BeanFactoryPostProcessor} that wraps all {@link org.springframework.core.env.PropertySource} defined in the {@link org.springframework.core.env.Environment}
* with {@link com.ulisesbocchio.jasyptspringboot.wrapper.EncryptablePropertySourceWrapper} and defines a default {@link org.jasypt.encryption.StringEncryptor} for decrypting properties
* that can be configured through the same properties it wraps.
diff --git a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/annotation/EncryptablePropertySource.java b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/annotation/EncryptablePropertySource.java
index 5021ab4..7086d0e 100644
--- a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/annotation/EncryptablePropertySource.java
+++ b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/annotation/EncryptablePropertySource.java
@@ -22,6 +22,8 @@
* will be generated based on the description of the underlying
* resource.
*
+ * @return name.
+ *
* @see org.springframework.core.env.PropertySource#getName()
* @see org.springframework.core.io.Resource#getDescription()
*/
@@ -38,6 +40,8 @@
* examples.
*
Each location will be added to the enclosing {@code Environment} as its own
* property source, and in the order declared.
+ *
+ * @return value.
*/
String[] value();
@@ -46,6 +50,8 @@
* ignored.
*
{@code true} is appropriate if the properties file is completely optional.
* Default is {@code false}.
+ *
+ * @return whether to ignore not found resource.
*/
boolean ignoreResourceNotFound() default false;
diff --git a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/annotation/EncryptablePropertySources.java b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/annotation/EncryptablePropertySources.java
index b701807..02771fe 100644
--- a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/annotation/EncryptablePropertySources.java
+++ b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/annotation/EncryptablePropertySources.java
@@ -24,5 +24,11 @@
@Retention(RetentionPolicy.RUNTIME)
@Import(EncryptablePropertySourceConfiguration.class)
public @interface EncryptablePropertySources {
+
+ /**
+ * EncryptablePropertySource.
+ *
+ * @return value.
+ */
EncryptablePropertySource[] value();
}
diff --git a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/aop/EncryptablePropertySourceMethodInterceptor.java b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/aop/EncryptablePropertySourceMethodInterceptor.java
index 0824946..df20b71 100644
--- a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/aop/EncryptablePropertySourceMethodInterceptor.java
+++ b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/aop/EncryptablePropertySourceMethodInterceptor.java
@@ -10,6 +10,8 @@
/**
*
*
+ * @param propertySource delegate.
+ *
* @author Sergio.U.Bocchio
* @version $Id: $Id
*/
diff --git a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/configuration/EnableEncryptablePropertiesBeanFactoryPostProcessor.java b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/configuration/EnableEncryptablePropertiesBeanFactoryPostProcessor.java
index 97c0e21..1c3d1ab 100644
--- a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/configuration/EnableEncryptablePropertiesBeanFactoryPostProcessor.java
+++ b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/configuration/EnableEncryptablePropertiesBeanFactoryPostProcessor.java
@@ -15,7 +15,7 @@
* with {@link com.ulisesbocchio.jasyptspringboot.wrapper.EncryptablePropertySourceWrapper} and defines a default {@link
* EncryptablePropertyResolver} for decrypting properties
* that can be configured through the same properties it wraps.
- *
+ *
*
It takes the lowest precedence so it does not interfere with Spring Boot's own post processors
*
* @author Ulises Bocchio
diff --git a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/configuration/EnableEncryptablePropertiesConfiguration.java b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/configuration/EnableEncryptablePropertiesConfiguration.java
index 88973c4..bacdb50 100644
--- a/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/configuration/EnableEncryptablePropertiesConfiguration.java
+++ b/jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/configuration/EnableEncryptablePropertiesConfiguration.java
@@ -20,6 +20,7 @@
* bean of type {@link org.jasypt.encryption.StringEncryptor} is present in the Application Context, thus allowing for custom definition if required.
*
The default {@link org.jasypt.encryption.StringEncryptor} can be configured through the following properties: