Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2063

MaskedPassword interface contains 8 algorighms those are unavailable on IBM JDK8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.14.1.Final, 2.0.0.Alpha10
    • None
    • None
    • None

      MaskedPassword interface contains 8 algorighms those are unavailable on IBM JDK8:

      • masked-SHA1-RC2-40
      • masked-SHA1-RC2-40-CBC-PKCS5
      • masked-SHA1-RC2-128
      • masked-SHA1-RC2-128-CBC-PKCS5
      • masked-SHA1-RC4-40
      • masked-SHA1-RC4-40-ECB
      • masked-SHA1-RC4-128
      • masked-SHA1-RC4-128-ECB

      This leads to MaskedPasswordTest errors on IBM JDK8.

      If this is excepted, MaskedPasswordTest needs to be fixed and proper explanation needs to be added to MaskedPassword interface (so far this interface suggest that only listed algorithms with @Deprecated annotation may be unavailable). If this is not excepted, then the bug needs to be fixed.

      [hudson@csb-rhel7-medium-102630 impl]$ mvn clean install -Dmaven.repo.local=/tmp/mkopecky/repo  -Dtest=MaskedPasswordTest -P skip-default-tests -Djava8.home=/path/to/ibm-java-x86_64-sdk-8.0-6.16
      ...
      Running org.wildfly.security.password.impl.MaskedPasswordTest
      Tests run: 48, Failures: 0, Errors: 16, Skipped: 0, Time elapsed: 1.688 sec <<< FAILURE! - in org.wildfly.security.password.impl.MaskedPasswordTest
      testClearSpec[6: masked-SHA1-RC2-40](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.006 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEwithSHA1AndRC2_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:100)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:120)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:492)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testClearSpec(MaskedPasswordTest.java:84)
      Caused by: java.security.NoSuchAlgorithmException: PBEwithSHA1AndRC2_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 5 more
      
      testEncryptableSpec[6: masked-SHA1-RC2-40](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEwithSHA1AndRC2_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:104)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:483)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testEncryptableSpec(MaskedPasswordTest.java:104)
      Caused by: java.security.NoSuchAlgorithmException: PBEwithSHA1AndRC2_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 4 more
      
      testClearSpec[7: masked-SHA1-RC2-40-CBC-PKCS5](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.002 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEwithSHA1Andrc2_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:100)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:120)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:492)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testClearSpec(MaskedPasswordTest.java:84)
      Caused by: java.security.NoSuchAlgorithmException: PBEwithSHA1Andrc2_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 5 more
      
      testEncryptableSpec[7: masked-SHA1-RC2-40-CBC-PKCS5](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.001 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEwithSHA1Andrc2_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:104)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:483)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testEncryptableSpec(MaskedPasswordTest.java:104)
      Caused by: java.security.NoSuchAlgorithmException: PBEwithSHA1Andrc2_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 4 more
      
      testClearSpec[8: masked-SHA1-RC2-128](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.001 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC2_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:100)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:120)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:492)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testClearSpec(MaskedPasswordTest.java:84)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC2_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 5 more
      
      testEncryptableSpec[8: masked-SHA1-RC2-128](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.001 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC2_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:104)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:483)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testEncryptableSpec(MaskedPasswordTest.java:104)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC2_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 4 more
      
      testClearSpec[9: masked-SHA1-RC2-128-CBC-PKCS5](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.001 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithSHA1andRC2_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:100)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:120)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:492)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testClearSpec(MaskedPasswordTest.java:84)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithSHA1andRC2_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 5 more
      
      testEncryptableSpec[9: masked-SHA1-RC2-128-CBC-PKCS5](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithSHA1andRC2_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:104)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:483)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testEncryptableSpec(MaskedPasswordTest.java:104)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithSHA1andRC2_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 4 more
      
      testClearSpec[10: masked-SHA1-RC4-40](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.001 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC4_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:100)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:120)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:492)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testClearSpec(MaskedPasswordTest.java:84)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC4_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 5 more
      
      testEncryptableSpec[10: masked-SHA1-RC4-40](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.001 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC4_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:104)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:483)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testEncryptableSpec(MaskedPasswordTest.java:104)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC4_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 4 more
      
      testClearSpec[11: masked-SHA1-RC4-40-ECB](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.002 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithsha1AndRC4_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:100)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:120)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:492)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testClearSpec(MaskedPasswordTest.java:84)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithsha1AndRC4_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 5 more
      
      testEncryptableSpec[11: masked-SHA1-RC4-40-ECB](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.002 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithsha1AndRC4_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:104)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:483)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testEncryptableSpec(MaskedPasswordTest.java:104)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithsha1AndRC4_40 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 4 more
      
      testClearSpec[12: masked-SHA1-RC4-128](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.001 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC4_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:100)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:120)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:492)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testClearSpec(MaskedPasswordTest.java:84)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC4_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 5 more
      
      testEncryptableSpec[12: masked-SHA1-RC4-128](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0.002 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC4_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:104)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:483)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testEncryptableSpec(MaskedPasswordTest.java:104)
      Caused by: java.security.NoSuchAlgorithmException: PBEWithSHA1AndRC4_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 4 more
      
      testClearSpec[13: masked-SHA1-RC4-128-ECB](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: pbeWithSHA1AndRC4_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:100)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:120)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:492)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testClearSpec(MaskedPasswordTest.java:84)
      Caused by: java.security.NoSuchAlgorithmException: pbeWithSHA1AndRC4_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 5 more
      
      testEncryptableSpec[13: masked-SHA1-RC4-128-ECB](org.wildfly.security.password.impl.MaskedPasswordTest)  Time elapsed: 0 sec  <<< ERROR!
      java.security.spec.InvalidKeySpecException: java.security.NoSuchAlgorithmException: pbeWithSHA1AndRC4_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:91)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:104)
      	at org.wildfly.security.password.impl.PasswordFactorySpiImpl.engineGeneratePassword(PasswordFactorySpiImpl.java:483)
      	at org.wildfly.security.password.PasswordFactory.generatePassword(PasswordFactory.java:151)
      	at org.wildfly.security.password.impl.MaskedPasswordTest.testEncryptableSpec(MaskedPasswordTest.java:104)
      Caused by: java.security.NoSuchAlgorithmException: pbeWithSHA1AndRC4_128 SecretKeyFactory not available
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.getCipher(MaskedPasswordImpl.java:189)
      	at org.wildfly.security.password.impl.MaskedPasswordImpl.<init>(MaskedPasswordImpl.java:87)
      	... 4 more
      ...
      [hudson@csb-rhel7-medium-102630 impl]$ 
      

              rh-ee-szaldana Sonia Zaldana Calles
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: