Skip to content

Instantly share code, notes, and snippets.

@tekener
Created September 11, 2012 17:10
Show Gist options
  • Save tekener/3699894 to your computer and use it in GitHub Desktop.
Save tekener/3699894 to your computer and use it in GitHub Desktop.
Ensure that Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files are installed using maven-enforcer-plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>enforce</id>
<configuration>
<rules>
<evaluateBeanshell>
<condition>javax.crypto.Cipher.getMaxAllowedKeyLength("AES") > 128</condition>
</evaluateBeanshell>
</rules>
</configuration>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment