Class com.ibm.ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImplTest

17

tests

0

failures

0

ignored

0.983s

duration

100%

successful

Tests

Test Duration Result
testGenerateVerifyDefault 0.751s passed
testGenerateVerifySpecifiedMinimum 0.148s passed
testInitializeBelowMinimumIterations 0.002s passed
testInitializeBelowMinimumKeySize 0.002s passed
testInitializeBelowMinimumSaltSize 0.002s passed
testInitializeDefault 0.022s passed
testInitializeInvalidAlgorithm 0.016s passed
testInitializeInvalidIterations 0.004s passed
testInitializeInvalidKeySize 0.001s passed
testInitializeInvalidSaltSize 0.002s passed
testInitializeSetValues 0.002s passed
testVerifyInvalidAlgorithm 0.001s passed
testVerifyInvalidFormat 0.006s passed
testVerifyInvalidHash 0.001s passed
testVerifyInvalidIterations 0.004s passed
testVerifyInvalidPassword 0.017s passed
testVerifyInvalidSalt 0.002s passed

Standard output

SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
expected :algorithm : 1, iterations : 2048, saltSize : 32, keySize : 32
actual   :algorithm : 1, iterations : 2048, saltSize : 32, keySize : 32

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[09/03/18 23:05:11:460 GMT] 00000012 SystemOut                                                    O expected :algorithm : 1, iterations : 2048, saltSize : 32, keySize : 32
[09/03/18 23:05:11:470 GMT] 00000012 SystemOut                                                    O actual   :algorithm : 1, iterations : 2048, saltSize : 32, keySize : 32

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
expected :algorithm : 3, iterations : 9999, saltSize : 128, keySize : 512
actual   :algorithm : 3, iterations : 9999, saltSize : 128, keySize : 512

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[09/03/18 23:05:11:474 GMT] 00000012 SystemOut                                                    O expected :algorithm : 3, iterations : 9999, saltSize : 128, keySize : 512
[09/03/18 23:05:11:474 GMT] 00000012 SystemOut                                                    O actual   :algorithm : 3, iterations : 9999, saltSize : 128, keySize : 512

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1933E: The value PBKDF2WethHmacSHA512 of the configuration parameter Pbkdf2PasswordHash.Algorithm is invalid.

-- Messages -------------------------------------------------
[09/03/18 23:05:11:477 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1933E: The value PBKDF2WethHmacSHA512 of the configuration parameter Pbkdf2PasswordHash.Algorithm is invalid.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1933E: The value NotANumber of the configuration parameter Pbkdf2PasswordHash.Iterations is invalid.

-- Messages -------------------------------------------------
[09/03/18 23:05:11:494 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1933E: The value NotANumber of the configuration parameter Pbkdf2PasswordHash.Iterations is invalid.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1933E: The value NotANumber of the configuration parameter Pbkdf2PasswordHash.SaltSizeBytes is invalid.

-- Messages -------------------------------------------------
[09/03/18 23:05:11:497 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1933E: The value NotANumber of the configuration parameter Pbkdf2PasswordHash.SaltSizeBytes is invalid.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1933E: The value NotANumber of the configuration parameter Pbkdf2PasswordHash.KeySizeBytes is invalid.

-- Messages -------------------------------------------------
[09/03/18 23:05:11:500 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1933E: The value NotANumber of the configuration parameter Pbkdf2PasswordHash.KeySizeBytes is invalid.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1934E: The value 3 of the configuration parameter Pbkdf2PasswordHash.Iterations is less than the minimum value 1,024.

-- Messages -------------------------------------------------
[09/03/18 23:05:11:502 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1934E: The value 3 of the configuration parameter Pbkdf2PasswordHash.Iterations is less than the minimum value 1,024.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1934E: The value 5 of the configuration parameter Pbkdf2PasswordHash.SaltSizeBytes is less than the minimum value 16.

-- Messages -------------------------------------------------
[09/03/18 23:05:11:505 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1934E: The value 5 of the configuration parameter Pbkdf2PasswordHash.SaltSizeBytes is less than the minimum value 16.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1934E: The value 8 of the configuration parameter Pbkdf2PasswordHash.KeySizeBytes is less than the minimum value 16.

-- Messages -------------------------------------------------
[09/03/18 23:05:11:507 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1934E: The value 8 of the configuration parameter Pbkdf2PasswordHash.KeySizeBytes is less than the minimum value 16.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
hashed value : PBKDF2WithHmacSHA256:2048:PHi3XoyzLOmG0CAklqFYgnXuxPoHoJvYP6JPhCly3nc=:mzjSR4S8zvNEAmUjVsX5PU9Ms+YEmWGHn0bY6CbRJ0c=
key length : 32
salt length : 32

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[09/03/18 23:05:12:237 GMT] 00000012 SystemOut                                                    O hashed value : PBKDF2WithHmacSHA256:2048:PHi3XoyzLOmG0CAklqFYgnXuxPoHoJvYP6JPhCly3nc=:mzjSR4S8zvNEAmUjVsX5PU9Ms+YEmWGHn0bY6CbRJ0c=
[09/03/18 23:05:12:237 GMT] 00000012 SystemOut                                                    O key length : 32
[09/03/18 23:05:12:238 GMT] 00000012 SystemOut                                                    O salt length : 32

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
hashed value : PBKDF2WithHmacSHA224:1024:zdlbr1btKuPJKAuKv3FlJg==:S/w/va9jYRKLtSDs2DGKfA==
key length : 16
salt length : 16

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[09/03/18 23:05:12:391 GMT] 00000012 SystemOut                                                    O hashed value : PBKDF2WithHmacSHA224:1024:zdlbr1btKuPJKAuKv3FlJg==:S/w/va9jYRKLtSDs2DGKfA==
[09/03/18 23:05:12:392 GMT] 00000012 SystemOut                                                    O key length : 16
[09/03/18 23:05:12:393 GMT] 00000012 SystemOut                                                    O salt length : 16

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1935E: The hashed data is invalid. The number of the elements 2 is not 4.

-- Messages -------------------------------------------------
[09/03/18 23:05:12:432 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The hashed data is invalid. The number of the elements 2 is not 4.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1935E: The hashed data is invalid. The hash algorithm invalid is not supported.

-- Messages -------------------------------------------------
[09/03/18 23:05:12:434 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The hashed data is invalid. The hash algorithm invalid is not supported.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1935E: The hashed data is invalid. The iterations 8A32G is not a number.

-- Messages -------------------------------------------------
[09/03/18 23:05:12:438 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The hashed data is invalid. The iterations 8A32G is not a number.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1935E: The hashed data is invalid. The salt value is not encoded properly.

-- Messages -------------------------------------------------
[09/03/18 23:05:12:443 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The hashed data is invalid. The salt value is not encoded properly.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1935E: The hashed data is invalid. The hash value is not encoded properly.

-- Messages -------------------------------------------------
[09/03/18 23:05:12:445 GMT] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The hashed data is invalid. The hash value is not encoded properly.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
-- Trace -------------------------------------------------