1
0
mirror of synced 2026-07-27 21:45:08 +00:00
Files
spring-security/crypto/crypto.gradle
T
2014-04-29 16:59:32 -05:00

13 lines
388 B
Groovy

// crypto module build file
// jdkVersion = System.properties['java.version']
// isJdk6 = jdkVersion >= '1.6'
int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
configure(project.tasks.withType(Test)) {
if (maxAESKeySize < 256) {
println "AES keysize limited to $maxAESKeySize, skipping EncryptorsTests"
exclude '**/EncryptorsTests.class'
}
}