This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch feature/encryption
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-spi.git
The following commit(s) were added to refs/heads/feature/encryption by this
push:
new 7097d92 SLING-13282 Add encrypted flag to PropertyMetadata
7097d92 is described below
commit 7097d9238648c7ce83f2bcd4f1a4db7f5e4a012a
Author: Konrad Windszus <[email protected]>
AuthorDate: Thu Jul 30 18:21:06 2026 +0200
SLING-13282 Add encrypted flag to PropertyMetadata
This reverts commit c807871b815c934aee7cbd646d6cecf4f402ba2d.
---
pom.xml | 2 +-
.../caconfig/spi/metadata/PropertyMetadata.java | 20 ++++++++++++++++++++
.../sling/caconfig/spi/metadata/package-info.java | 2 +-
3 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index b15a1c9..77a319c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
</parent>
<artifactId>org.apache.sling.caconfig.spi</artifactId>
- <version>1.4.1-SNAPSHOT</version>
+ <version>1.5.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Apache Sling Context-Aware Configuration SPI</name>
<description>Apache Sling Context-Aware Configuration SPI</description>
diff --git
a/src/main/java/org/apache/sling/caconfig/spi/metadata/PropertyMetadata.java
b/src/main/java/org/apache/sling/caconfig/spi/metadata/PropertyMetadata.java
index e222e63..6c74d83 100644
--- a/src/main/java/org/apache/sling/caconfig/spi/metadata/PropertyMetadata.java
+++ b/src/main/java/org/apache/sling/caconfig/spi/metadata/PropertyMetadata.java
@@ -50,6 +50,8 @@ public final class PropertyMetadata<T> extends
AbstractMetadata<PropertyMetadata
private ConfigurationMetadata configurationMetadata;
private int order;
+ private boolean encrypted;
+
/**
* @param name Property name
* @param type Property type
@@ -161,6 +163,24 @@ public final class PropertyMetadata<T> extends
AbstractMetadata<PropertyMetadata
return this;
}
+ /**
+ * @return {@code true} if this property is encrypted
+ * @since 2.1.0 (Bundle version 1.5.0)
+ */
+ public boolean isEncrypted() {
+ return this.encrypted;
+ }
+
+ /**
+ * @param value {@code true} if this property is encrypted
+ * @return this
+ * @since 2.1.0 (Bundle version 1.5.0)
+ */
+ public PropertyMetadata<T> encrypted(boolean encrypted) {
+ this.encrypted = encrypted;
+ return this;
+ }
+
/**
* @return Metadata for nested configuration
*/
diff --git
a/src/main/java/org/apache/sling/caconfig/spi/metadata/package-info.java
b/src/main/java/org/apache/sling/caconfig/spi/metadata/package-info.java
index 03b88e6..1a8e360 100644
--- a/src/main/java/org/apache/sling/caconfig/spi/metadata/package-info.java
+++ b/src/main/java/org/apache/sling/caconfig/spi/metadata/package-info.java
@@ -19,5 +19,5 @@
/**
* Defining configuration and parameter metadata for the SPI.
*/
[email protected]("2.0.2")
[email protected]("2.1.0")
package org.apache.sling.caconfig.spi.metadata;