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

17

tests

0

failures

0

ignored

0.084s

duration

100%

successful

Tests

Test Duration Result
testGenerateVerifyDefault 0.043s passed
testGenerateVerifySpecifiedMinimum 0.007s passed
testInitializeBelowMinimumIterations 0.002s passed
testInitializeBelowMinimumKeySize 0.001s passed
testInitializeBelowMinimumSaltSize 0.001s passed
testInitializeDefault 0.008s passed
testInitializeInvalidAlgorithm 0.008s passed
testInitializeInvalidIterations 0.002s passed
testInitializeInvalidKeySize 0.001s passed
testInitializeInvalidSaltSize 0.001s passed
testInitializeSetValues 0.001s passed
testVerifyInvalidAlgorithm 0.001s passed
testVerifyInvalidFormat 0.001s passed
testVerifyInvalidHash 0.001s passed
testVerifyInvalidIterations 0.001s passed
testVerifyInvalidPassword 0.004s passed
testVerifyInvalidSalt 0.001s passed

Standard output

    TrConfigZapper.zapTrConfig : start invoke init()
init: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@cb977e65
registerLoggerHandlerSingleton: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@cb977e65
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@cb977e65
    TrConfigZapper.zapTrConfig : finished invoke init()
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 -------------------------------------------------
[10/10/2022, 16:52:48:743 BST] 00000015 SystemOut                                                    O expected :algorithm : 1, iterations : 2048, saltSize : 32, keySize : 32
[10/10/2022, 16:52:48:743 BST] 00000015 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 -------------------------------------------------
[10/10/2022, 16:52:48:745 BST] 00000015 SystemOut                                                    O expected :algorithm : 3, iterations : 9999, saltSize : 128, keySize : 512
[10/10/2022, 16:52:48:745 BST] 00000015 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 -------------------------------------------------
[10/10/2022, 16:52:48:747 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:755 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:756 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:758 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:759 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:761 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:762 BST] 00000015 .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:OPMKpsYeJZlK7Z+pab4OZk26fg/DBvW3IW2U2f6FC0A=:lm8/hS+8OrLnsphEM9fOfzTM3aORv1hkFZMxAMs8lzU=
key length : 32
salt length : 32

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[10/10/2022, 16:52:48:799 BST] 00000015 SystemOut                                                    O hashed value : PBKDF2WithHmacSHA256:2048:OPMKpsYeJZlK7Z+pab4OZk26fg/DBvW3IW2U2f6FC0A=:lm8/hS+8OrLnsphEM9fOfzTM3aORv1hkFZMxAMs8lzU=
[10/10/2022, 16:52:48:799 BST] 00000015 SystemOut                                                    O key length : 32
[10/10/2022, 16:52:48:799 BST] 00000015 SystemOut                                                    O salt length : 32

-- Trace -------------------------------------------------
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
hashed value : PBKDF2WithHmacSHA224:1024:Ig+DK/wHWi5pPXGZ5pX2Ug==:qMaq9vRd0PiS84yggbYgJw==
key length : 16
salt length : 16

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[10/10/2022, 16:52:48:810 BST] 00000015 SystemOut                                                    O hashed value : PBKDF2WithHmacSHA224:1024:Ig+DK/wHWi5pPXGZ5pX2Ug==:qMaq9vRd0PiS84yggbYgJw==
[10/10/2022, 16:52:48:811 BST] 00000015 SystemOut                                                    O key length : 16
[10/10/2022, 16:52:48:811 BST] 00000015 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 -------------------------------------------------
[10/10/2022, 16:52:48:818 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:820 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:821 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:822 BST] 00000015 .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 -------------------------------------------------
[10/10/2022, 16:52:48:824 BST] 00000015 .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 -------------------------------------------------