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

17

tests

0

failures

0

ignored

0.941s

duration

100%

successful

Tests

Test Duration Result
testGenerateVerifyDefault 0.745s passed
testGenerateVerifySpecifiedMinimum 0.117s passed
testInitializeBelowMinimumIterations 0.002s passed
testInitializeBelowMinimumKeySize 0.002s passed
testInitializeBelowMinimumSaltSize 0.002s passed
testInitializeDefault 0.023s passed
testInitializeInvalidAlgorithm 0.012s passed
testInitializeInvalidIterations 0.004s passed
testInitializeInvalidKeySize 0.002s passed
testInitializeInvalidSaltSize 0.002s passed
testInitializeSetValues 0.002s passed
testVerifyInvalidAlgorithm 0.002s passed
testVerifyInvalidFormat 0.004s passed
testVerifyInvalidHash 0.001s passed
testVerifyInvalidIterations 0.006s passed
testVerifyInvalidPassword 0.014s passed
testVerifyInvalidSalt 0.001s 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 -------------------------------------------------
[06/09/18 01:59:40:581 BST] 00000012 SystemOut                                                    O expected :algorithm : 1, iterations : 2048, saltSize : 32, keySize : 32
[06/09/18 01:59:40:591 BST] 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 -------------------------------------------------
[06/09/18 01:59:40:597 BST] 00000012 SystemOut                                                    O expected :algorithm : 3, iterations : 9999, saltSize : 128, keySize : 512
[06/09/18 01:59:40:597 BST] 00000012 SystemOut                                                    O actual   :algorithm : 3, iterations : 9999, saltSize : 128, keySize : 512

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1933E: The password hash for the DatabaseIdentityStore attribute is not valid because the Pbkdf2PasswordHash.Algorithm configuration parameter has a value of PBKDF2WethHmacSHA512 that is not valid.

-- Messages -------------------------------------------------
[06/09/18 01:59:40:599 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1933E: The password hash for the DatabaseIdentityStore attribute is not valid because the Pbkdf2PasswordHash.Algorithm configuration parameter has a value of PBKDF2WethHmacSHA512 that is not valid.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1933E: The password hash for the DatabaseIdentityStore attribute is not valid because the Pbkdf2PasswordHash.Iterations configuration parameter has a value of NotANumber that is not valid.

-- Messages -------------------------------------------------
[06/09/18 01:59:40:614 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1933E: The password hash for the DatabaseIdentityStore attribute is not valid because the Pbkdf2PasswordHash.Iterations configuration parameter has a value of NotANumber that is not valid.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1933E: The password hash for the DatabaseIdentityStore attribute is not valid because the Pbkdf2PasswordHash.SaltSizeBytes configuration parameter has a value of NotANumber that is not valid.

-- Messages -------------------------------------------------
[06/09/18 01:59:40:617 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1933E: The password hash for the DatabaseIdentityStore attribute is not valid because the Pbkdf2PasswordHash.SaltSizeBytes configuration parameter has a value of NotANumber that is not valid.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1933E: The password hash for the DatabaseIdentityStore attribute is not valid because the Pbkdf2PasswordHash.KeySizeBytes configuration parameter has a value of NotANumber that is not valid.

-- Messages -------------------------------------------------
[06/09/18 01:59:40:620 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1933E: The password hash for the DatabaseIdentityStore attribute is not valid because the Pbkdf2PasswordHash.KeySizeBytes configuration parameter has a value of NotANumber that is not valid.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1934E: The password hash for the DatabaseIdentityStore attribute is not valid because the 3 value of the Pbkdf2PasswordHash.Iterations configuration parameter is less than the minimum value of 1,024.

-- Messages -------------------------------------------------
[06/09/18 01:59:40:623 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1934E: The password hash for the DatabaseIdentityStore attribute is not valid because the 3 value of the Pbkdf2PasswordHash.Iterations configuration parameter is less than the minimum value of 1,024.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1934E: The password hash for the DatabaseIdentityStore attribute is not valid because the 5 value of the Pbkdf2PasswordHash.SaltSizeBytes configuration parameter is less than the minimum value of 16.

-- Messages -------------------------------------------------
[06/09/18 01:59:40:626 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1934E: The password hash for the DatabaseIdentityStore attribute is not valid because the 5 value of the Pbkdf2PasswordHash.SaltSizeBytes configuration parameter is less than the minimum value of 16.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1934E: The password hash for the DatabaseIdentityStore attribute is not valid because the 8 value of the Pbkdf2PasswordHash.KeySizeBytes configuration parameter is less than the minimum value of 16.

-- Messages -------------------------------------------------
[06/09/18 01:59:40:629 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1934E: The password hash for the DatabaseIdentityStore attribute is not valid because the 8 value of the Pbkdf2PasswordHash.KeySizeBytes configuration parameter is less than the minimum value of 16.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
hashed value : PBKDF2WithHmacSHA256:2048:lilRUhk6Rb0PHHj0V+dgXlyhz6yc8HsCO779MXD/C8U=:v3wb6z8CuugzHk7t/wzRppYuZbUy3JXYgwqWZyc6vlc=
key length : 32
salt length : 32

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[06/09/18 01:59:41:356 BST] 00000012 SystemOut                                                    O hashed value : PBKDF2WithHmacSHA256:2048:lilRUhk6Rb0PHHj0V+dgXlyhz6yc8HsCO779MXD/C8U=:v3wb6z8CuugzHk7t/wzRppYuZbUy3JXYgwqWZyc6vlc=
[06/09/18 01:59:41:356 BST] 00000012 SystemOut                                                    O key length : 32
[06/09/18 01:59:41:356 BST] 00000012 SystemOut                                                    O salt length : 32

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
hashed value : PBKDF2WithHmacSHA224:1024:izyOsvdSY18k1eGQJAKcVA==:xZ/ehVfQB0meR2MYOAKhTA==
key length : 16
salt length : 16

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[06/09/18 01:59:41:458 BST] 00000012 SystemOut                                                    O hashed value : PBKDF2WithHmacSHA224:1024:izyOsvdSY18k1eGQJAKcVA==:xZ/ehVfQB0meR2MYOAKhTA==
[06/09/18 01:59:41:458 BST] 00000012 SystemOut                                                    O key length : 16
[06/09/18 01:59:41:459 BST] 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 password hash from the database is not valid. The number of the elements 2 is not 4.

-- Messages -------------------------------------------------
[06/09/18 01:59:41:510 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The password hash from the database is not valid. The number of the elements 2 is not 4.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1935E: The password hash from the database is not valid. The hash algorithm invalid is not supported.

-- Messages -------------------------------------------------
[06/09/18 01:59:41:513 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The password hash from the database is not valid. The hash algorithm invalid is not supported.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1935E: The password hash from the database is not valid. The iterations 8A32G is not a number.

-- Messages -------------------------------------------------
[06/09/18 01:59:41:519 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The password hash from the database is not valid. The iterations 8A32G is not a number.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1935E: The password hash from the database is not valid. The salt value is not encoded properly.

-- Messages -------------------------------------------------
[06/09/18 01:59:41:525 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The password hash from the database is not valid. The salt value is not encoded properly.

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
[ERROR   ] CWWKS1935E: The password hash from the database is not valid. The hash value is not encoded properly.

-- Messages -------------------------------------------------
[06/09/18 01:59:41:526 BST] 00000012 .ws.security.javaeesec.cdi.beans.hash.Pbkdf2PasswordHashImpl E CWWKS1935E: The password hash from the database is not valid. The hash value is not encoded properly.

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