chore(build): enforce unlimited cryptography JVM
This adds a Maven enforcer rule to check if the JVM running the Maven
process has an imposed limit to cryptography.
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <configuration>
+ <rules combine.children="append">
+ <evaluateBeanshell>
+ <message>The Java Virtual Machine running this Maven build is enforcing limited cryptography, please either install Unlimited Strength Jurisdiction Policy Files to this JVM or use a JVM that doesn't enforce this limit</message>
+ <condition>javax.crypto.Cipher.getMaxAllowedKeyLength("AES") > 128</condition>
+ </evaluateBeanshell>
+ </rules>
+ </configuration>
+ </plugin>
+
</plugins>
+
</build>
<!-- Common dependencies -->
