imported scripts from intellicastle project and adapted to bordercastle

This commit is contained in:
Leon Poyyayil 2025-10-25 08:02:34 +02:00
parent 6178c58132
commit dd07940e6a
29 changed files with 1744 additions and 2 deletions

18
maven/pom/boca-light.xml Normal file
View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>boca-light</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.bordercastle</groupId>
<artifactId>boca-parent</artifactId>
<version>${bordercastle.version}</version>
</parent>
<name>BorderCastle Lightweight Crypto API</name>
<description>
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms.
This jar contains the lightweight API for the Bouncy Castle Cryptography APIs
for JDK 1.8 and onwards.
</description>
</project>

36
maven/pom/boca-mail.xml Normal file
View file

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>boca-mail</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.bordercastle</groupId>
<artifactId>boca-parent</artifactId>
<version>${bordercastle.version}</version>
</parent>
<name>BorderCastle S/MIME API</name>
<description>
The Bouncy Castle Java S/MIME APIs for handling S/MIME protocols.
This jar contains S/MIME APIs for JDK 1.8 and onwards. The APIs can be used in conjunction
with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs.
The JavaMail API and the Java activation framework will also be needed.
</description>
<dependencies>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-util</artifactId>
<version>${bordercastle.version}</version>
</dependency>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-pkix</artifactId>
<version>${bordercastle.version}</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.5</version>
</dependency>
</dependencies>
</project>

74
maven/pom/boca-mls.xml Normal file
View file

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>boca-mls</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.bordercastle</groupId>
<artifactId>boca-parent</artifactId>
<version>${bordercastle.version}</version>
</parent>
<name>BorderCastle MLS</name>
<description>
The Bouncy Castle MLS implementation.
This jar contains APIs for JDK 1.8 and onwards. The APIs can be used in conjunction with a JCE/JCA
provider such as the one provided with the Bouncy Castle Cryptography APIs.
</description>
<dependencies>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-prov</artifactId>
<version>${bordercastle.version}</version>
</dependency>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-util</artifactId>
<version>${bordercastle.version}</version>
</dependency>
<!-- note: this module requires some .proto files to get used for generating java code
=> not currently supported by our maven pom files and thus left out
-->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.22.3</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-api</artifactId>
<version>1.58.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-core</artifactId>
<version>1.58.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>1.58.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.58.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf-lite</artifactId>
<version>1.58.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-services</artifactId>
<version>1.58.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.58.0</version>
</dependency>
</dependencies>
</project>

116
maven/pom/boca-parent.xml Normal file
View file

@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<groupId>org.bordercastle</groupId>
<artifactId>boca-parent</artifactId>
<version>${bordercastle.version}</version>
<packaging>pom</packaging>
<name>BorderCastle parent POM project</name>
<url>http://www.bordercastle.org/</url>
<description>
BorderCastle is a package-rename (org.bouncycastle.* to org.bordercastle.*) of Bouncy Castle
intended for the Android platform. Android unfortunately ships with a stripped-down version of
Bouncy Castle, which prevents easy upgrades - BorderCastle overcomes this and provides a full,
up-to-date version of the Bouncy Castle cryptographic libs.
The project was inspired by Spongy Castle (http://rtyley.github.com/spongycastle/) but forked
from it to have a documented and well established build process, directly from the Bouncy Castle
sources.
</description>
<licenses>
<license>
<name>Bouncy Castle Licence</name>
<url>http://www.bouncycastle.org/licence.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>bouncy-castle-dev</id>
<name>Bouncy Castle contributors</name>
<url>http://www.bouncycastle.org/contributors.html</url>
</developer>
<developer>
<id>lepoy</id>
<name>Leon Poyyayil</name>
<timezone>0</timezone>
</developer>
<developer>
<id>dincalza</id>
<name>Dario Incalza</name>
<timezone>0</timezone>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<modules>
<module>boca-light</module>
<module>boca-prov</module>
<module>boca-pg</module>
<module>boca-pkix</module>
<module>boca-mail</module>
<!-- requires to generate code based on protobuf spec: currently not done
<module>boca-mls</module>
-->
<module>boca-util</module>
<module>boca-tls</module>
</modules>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.unboundid</groupId>
<artifactId>unboundid-ldapsdk</artifactId>
<version>6.0.8</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

30
maven/pom/boca-pg.xml Normal file
View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>boca-pg</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.bordercastle</groupId>
<artifactId>boca-parent</artifactId>
<version>${bordercastle.version}</version>
</parent>
<name>BorderCastle OpenPGP API</name>
<description>
The Bouncy Castle Java API for handling the OpenPGP protocol.
This jar contains APIs for JDK 1.8 and onwards. The APIs can be used in conjunction with a JCE/JCA
provider such as the one provided with the Bouncy Castle Cryptography APIs.
</description>
<dependencies>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-prov</artifactId>
<version>${bordercastle.version}</version>
</dependency>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-util</artifactId>
<version>${bordercastle.version}</version>
</dependency>
</dependencies>
</project>

30
maven/pom/boca-pkix.xml Normal file
View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>boca-pkix</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.bordercastle</groupId>
<artifactId>boca-parent</artifactId>
<version>${bordercastle.version}</version>
</parent>
<name>BorderCastle PKIX, CMS, EAC, TSP, PKCS, OCSP, CMP, and CRMF APIs</name>
<description>
The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation.
This jar contains APIs for JDK 1.8 and onwards. The APIs can be used in conjunction with a JCE/JCA
provider such as the one provided with the Bouncy Castle Cryptography APIs.
</description>
<dependencies>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-prov</artifactId>
<version>${bordercastle.version}</version>
</dependency>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-util</artifactId>
<version>${bordercastle.version}</version>
</dependency>
</dependencies>
</project>

24
maven/pom/boca-prov.xml Normal file
View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>boca-prov</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.bordercastle</groupId>
<artifactId>boca-parent</artifactId>
<version>${bordercastle.version}</version>
</parent>
<name>BorderCastle Provider</name>
<description>
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms.
This jar contains the JCE provider for the Bouncy Castle Cryptography APIs for JDK 1.8 and onwards.
</description>
<dependencies>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-light</artifactId>
<version>${bordercastle.version}</version>
</dependency>
</dependencies>
</project>

30
maven/pom/boca-tls.xml Normal file
View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>boca-tls</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.bordercastle</groupId>
<artifactId>boca-parent</artifactId>
<version>${bordercastle.version}</version>
</parent>
<name>BorderCastle TLS/JSSE</name>
<description>
The Bouncy Castle TLS/JSSE implementation.
This jar contains APIs for JDK 1.8 and onwards. The APIs can be used in conjunction with a JCE/JCA
provider such as the one provided with the Bouncy Castle Cryptography APIs.
</description>
<dependencies>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-prov</artifactId>
<version>${bordercastle.version}</version>
</dependency>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-util</artifactId>
<version>${bordercastle.version}</version>
</dependency>
</dependencies>
</project>

31
maven/pom/boca-util.xml Normal file
View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>boca-util</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.bordercastle</groupId>
<artifactId>boca-parent</artifactId>
<version>${bordercastle.version}</version>
</parent>
<name>BorderCastle Utilities</name>
<description>
The Bouncy Castle utility classes.
This jar contains a collection of classes which do not need to be in the JCE provider
jar, but are used by the other APIs. The APIs can be used in conjunction with a JCE/JCA
provider such as the one provided with the Bouncy Castle Cryptography APIs.
</description>
<dependencies>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-light</artifactId>
<version>${bordercastle.version}</version>
</dependency>
<dependency>
<groupId>org.bordercastle</groupId>
<artifactId>boca-prov</artifactId>
<version>${bordercastle.version}</version>
</dependency>
</dependencies>
</project>