This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-spi.git
The following commit(s) were added to refs/heads/master by this push:
new a6b48b3 SLING-13282 Add encrypted flag to PropertyMetadata
a6b48b3 is described below
commit a6b48b3da6276545d0f42417a55857811184e9b8
Author: Konrad Windszus <[email protected]>
AuthorDate: Thu Jul 30 18:16:05 2026 +0200
SLING-13282 Add encrypted flag to PropertyMetadata
---
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;