SLING-8916 Add sample configurations
Sample configurations for Commons Crypto
diff --git a/sling-commons-crypto-configuration/README.md b/sling-commons-crypto-configuration/README.md
new file mode 100644
index 0000000..ca4ca64
--- /dev/null
+++ b/sling-commons-crypto-configuration/README.md
@@ -0,0 +1,5 @@
+# Apache Sling Commons Crypto - Sample Configuration
+
+This module is part of the [Apache Sling](https://sling.apache.org) project.
+
+See [Sling's documentation for Commons Crypto](https://sling.apache.org/documentation/bundles/commons-crypto.html) for details.
diff --git a/sling-commons-crypto-configuration/bnd.bnd b/sling-commons-crypto-configuration/bnd.bnd
new file mode 100644
index 0000000..0e17bfd
--- /dev/null
+++ b/sling-commons-crypto-configuration/bnd.bnd
@@ -0,0 +1,6 @@
+Sling-Initial-Content:\
+ initial-content
+
+-removeheaders:\
+ Include-Resource,\
+ Private-Package
diff --git a/sling-commons-crypto-configuration/pom.xml b/sling-commons-crypto-configuration/pom.xml
new file mode 100644
index 0000000..d889593
--- /dev/null
+++ b/sling-commons-crypto-configuration/pom.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>sling-bundle-parent</artifactId>
+ <version>35</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>org.apache.sling.samples</groupId>
+ <artifactId>org.apache.sling.samples.sling-commons-crypto-configuration</artifactId>
+ <version>1-SNAPSHOT</version>
+
+ <name>Apache Sling Samples - Sling Commons Crypto Configuration</name>
+ <description>Sample configurations for Apache Sling Commons Crypto</description>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>biz.aQute.bnd</groupId>
+ <artifactId>bnd-baseline-maven-plugin</artifactId>
+ <configuration>
+ <failOnMissing>false</failOnMissing>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>launchpad@localhost</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>sling-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>install</phase>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ <configuration>
+ <slingUrl>http://localhost:8080/system/console/install</slingUrl>
+ <user>admin</user>
+ <password>admin</password>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>karaf@localhost</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>sling-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>install</phase>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ <configuration>
+ <slingUrl>http://localhost:8181/system/console/install</slingUrl>
+ <user>karaf</user>
+ <password>karaf</password>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
diff --git a/sling-commons-crypto-configuration/src/main/resources/initial-content/apps/samples/commons-crypto/config/org.apache.sling.commons.crypto.internal.FilePasswordProvider~sample.json b/sling-commons-crypto-configuration/src/main/resources/initial-content/apps/samples/commons-crypto/config/org.apache.sling.commons.crypto.internal.FilePasswordProvider~sample.json
new file mode 100644
index 0000000..fec5666
--- /dev/null
+++ b/sling-commons-crypto-configuration/src/main/resources/initial-content/apps/samples/commons-crypto/config/org.apache.sling.commons.crypto.internal.FilePasswordProvider~sample.json
@@ -0,0 +1,5 @@
+{
+ "jcr:primaryType": "sling:OsgiConfig",
+ "names": ["sample"],
+ "path": "/var/sling/password"
+}
diff --git a/sling-commons-crypto-configuration/src/main/resources/initial-content/apps/samples/commons-crypto/config/org.apache.sling.commons.crypto.jasypt.internal.JasyptRandomIvGeneratorRegistrar~sample.json b/sling-commons-crypto-configuration/src/main/resources/initial-content/apps/samples/commons-crypto/config/org.apache.sling.commons.crypto.jasypt.internal.JasyptRandomIvGeneratorRegistrar~sample.json
new file mode 100644
index 0000000..05f3c0f
--- /dev/null
+++ b/sling-commons-crypto-configuration/src/main/resources/initial-content/apps/samples/commons-crypto/config/org.apache.sling.commons.crypto.jasypt.internal.JasyptRandomIvGeneratorRegistrar~sample.json
@@ -0,0 +1,4 @@
+{
+ "jcr:primaryType": "sling:OsgiConfig",
+ "algorithm": "SHA1PRNG"
+}
diff --git a/sling-commons-crypto-configuration/src/main/resources/initial-content/apps/samples/commons-crypto/config/org.apache.sling.commons.crypto.jasypt.internal.JasyptStandardPBEStringCryptoService~sample.json b/sling-commons-crypto-configuration/src/main/resources/initial-content/apps/samples/commons-crypto/config/org.apache.sling.commons.crypto.jasypt.internal.JasyptStandardPBEStringCryptoService~sample.json
new file mode 100644
index 0000000..74cd241
--- /dev/null
+++ b/sling-commons-crypto-configuration/src/main/resources/initial-content/apps/samples/commons-crypto/config/org.apache.sling.commons.crypto.jasypt.internal.JasyptStandardPBEStringCryptoService~sample.json
@@ -0,0 +1,5 @@
+{
+ "jcr:primaryType": "sling:OsgiConfig",
+ "names": ["sample"],
+ "algorithm": "PBEWITHHMACSHA512ANDAES_256"
+}