Class com.ibm.ws.security.jwt.utils.JweHelperTest

15

tests

0

failures

0

ignored

0.039s

duration

100%

successful

Tests

Test Duration Result
test_extractPayloadFromJweToken_headerAlgDoesNotMatchAlgInKey 0.004s passed
test_extractPayloadFromJweToken_invalidPkcsPadding 0.012s passed
test_getKidFromJweString_emptyJson 0s passed
test_getKidFromJweString_emptyKidEntry 0.001s passed
test_getKidFromJweString_justFourPeriods 0.001s passed
test_getKidFromJweString_missingKidEntry 0s passed
test_getKidFromJweString_nonEmptyKidEntry 0.001s passed
test_getKidFromJweString_notBase64Encoded 0s passed
test_getKidFromJweString_notBase64EncodedJson 0s passed
test_getKidFromJweString_notJson 0.003s passed
test_getKidFromJweString_onePeriod 0s passed
test_verifyContentType_ctyEmpty 0.001s passed
test_verifyContentType_ctyIsJwt 0.001s passed
test_verifyContentType_ctyNotJwt 0.001s passed
test_verifyContentType_ctyNull 0.014s passed

Standard output

    TrConfigZapper.zapTrConfig : start invoke init()
init: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@3da47284
[WARNING ] MP_CONFIG_PUBLIC_KEY_ALG_NOT_SUPPORTED 
                                                                                                               NO256
                                                                                                               RS256
                                                                                                               [RS256, RS384, RS512, HS256, HS384, HS512, ES256, ES384, ES512]
[WARNING ] MP_CONFIG_PUBLIC_KEY_ALG_NOT_SUPPORTED 
                                                                                                               unknown algorithm
                                                                                                               RS256
                                                                                                               [RS256, RS384, RS512, HS256, HS384, HS512, ES256, ES384, ES512]
registerLoggerHandlerSingleton: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@3da47284
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@3da47284
    TrConfigZapper.zapTrConfig : finished invoke init()
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
Entering test: test_verifyContentType_ctyNull
Exiting test: test_verifyContentType_ctyNull
Entering test: test_verifyContentType_ctyEmpty
Exiting test: test_verifyContentType_ctyEmpty
Entering test: test_verifyContentType_ctyNotJwt
Exiting test: test_verifyContentType_ctyNotJwt
Entering test: test_verifyContentType_ctyIsJwt
Exiting test: test_verifyContentType_ctyIsJwt
Entering test: test_getKidFromJweString_justFourPeriods
Exiting test: test_getKidFromJweString_justFourPeriods
Entering test: test_getKidFromJweString_onePeriod
Exiting test: test_getKidFromJweString_onePeriod
Entering test: test_getKidFromJweString_notBase64Encoded
Exiting test: test_getKidFromJweString_notBase64Encoded
Entering test: test_getKidFromJweString_notBase64EncodedJson
Exiting test: test_getKidFromJweString_notBase64EncodedJson
Entering test: test_getKidFromJweString_notJson
Exiting test: test_getKidFromJweString_notJson
Entering test: test_getKidFromJweString_emptyJson
Exiting test: test_getKidFromJweString_emptyJson
Entering test: test_getKidFromJweString_missingKidEntry
Exiting test: test_getKidFromJweString_missingKidEntry
Entering test: test_getKidFromJweString_emptyKidEntry
Exiting test: test_getKidFromJweString_emptyKidEntry
Entering test: test_getKidFromJweString_nonEmptyKidEntry
Exiting test: test_getKidFromJweString_nonEmptyKidEntry
Entering test: test_extractPayloadFromJweToken_invalidPkcsPadding
Exiting test: test_extractPayloadFromJweToken_invalidPkcsPadding
Entering test: test_extractPayloadFromJweToken_headerAlgDoesNotMatchAlgInKey
Exiting test: test_extractPayloadFromJweToken_headerAlgDoesNotMatchAlgInKey

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[6/25/24, 22:08:26:414 UTC] 00000001 SystemOut                                                    O Entering test: test_verifyContentType_ctyNull
[6/25/24, 22:08:26:428 UTC] 00000001 SystemOut                                                    O Exiting test: test_verifyContentType_ctyNull
[6/25/24, 22:08:26:428 UTC] 00000001 SystemOut                                                    O Entering test: test_verifyContentType_ctyEmpty
[6/25/24, 22:08:26:429 UTC] 00000001 SystemOut                                                    O Exiting test: test_verifyContentType_ctyEmpty
[6/25/24, 22:08:26:429 UTC] 00000001 SystemOut                                                    O Entering test: test_verifyContentType_ctyNotJwt
[6/25/24, 22:08:26:430 UTC] 00000001 SystemOut                                                    O Exiting test: test_verifyContentType_ctyNotJwt
[6/25/24, 22:08:26:430 UTC] 00000001 SystemOut                                                    O Entering test: test_verifyContentType_ctyIsJwt
[6/25/24, 22:08:26:431 UTC] 00000001 SystemOut                                                    O Exiting test: test_verifyContentType_ctyIsJwt
[6/25/24, 22:08:26:431 UTC] 00000001 SystemOut                                                    O Entering test: test_getKidFromJweString_justFourPeriods
[6/25/24, 22:08:26:432 UTC] 00000001 SystemOut                                                    O Exiting test: test_getKidFromJweString_justFourPeriods
[6/25/24, 22:08:26:432 UTC] 00000001 SystemOut                                                    O Entering test: test_getKidFromJweString_onePeriod
[6/25/24, 22:08:26:432 UTC] 00000001 SystemOut                                                    O Exiting test: test_getKidFromJweString_onePeriod
[6/25/24, 22:08:26:433 UTC] 00000001 SystemOut                                                    O Entering test: test_getKidFromJweString_notBase64Encoded
[6/25/24, 22:08:26:433 UTC] 00000001 SystemOut                                                    O Exiting test: test_getKidFromJweString_notBase64Encoded
[6/25/24, 22:08:26:434 UTC] 00000001 SystemOut                                                    O Entering test: test_getKidFromJweString_notBase64EncodedJson
[6/25/24, 22:08:26:434 UTC] 00000001 SystemOut                                                    O Exiting test: test_getKidFromJweString_notBase64EncodedJson
[6/25/24, 22:08:26:435 UTC] 00000001 SystemOut                                                    O Entering test: test_getKidFromJweString_notJson
[6/25/24, 22:08:26:437 UTC] 00000001 SystemOut                                                    O Exiting test: test_getKidFromJweString_notJson
[6/25/24, 22:08:26:439 UTC] 00000001 SystemOut                                                    O Entering test: test_getKidFromJweString_emptyJson
[6/25/24, 22:08:26:439 UTC] 00000001 SystemOut                                                    O Exiting test: test_getKidFromJweString_emptyJson
[6/25/24, 22:08:26:440 UTC] 00000001 SystemOut                                                    O Entering test: test_getKidFromJweString_missingKidEntry
[6/25/24, 22:08:26:440 UTC] 00000001 SystemOut                                                    O Exiting test: test_getKidFromJweString_missingKidEntry
[6/25/24, 22:08:26:441 UTC] 00000001 SystemOut                                                    O Entering test: test_getKidFromJweString_emptyKidEntry
[6/25/24, 22:08:26:441 UTC] 00000001 SystemOut                                                    O Exiting test: test_getKidFromJweString_emptyKidEntry
[6/25/24, 22:08:26:441 UTC] 00000001 SystemOut                                                    O Entering test: test_getKidFromJweString_nonEmptyKidEntry
[6/25/24, 22:08:26:442 UTC] 00000001 SystemOut                                                    O Exiting test: test_getKidFromJweString_nonEmptyKidEntry
[6/25/24, 22:08:26:442 UTC] 00000001 SystemOut                                                    O Entering test: test_extractPayloadFromJweToken_invalidPkcsPadding
[6/25/24, 22:08:26:454 UTC] 00000001 SystemOut                                                    O Exiting test: test_extractPayloadFromJweToken_invalidPkcsPadding
[6/25/24, 22:08:26:455 UTC] 00000001 SystemOut                                                    O Entering test: test_extractPayloadFromJweToken_headerAlgDoesNotMatchAlgInKey
[6/25/24, 22:08:26:458 UTC] 00000001 SystemOut                                                    O Exiting test: test_extractPayloadFromJweToken_headerAlgDoesNotMatchAlgInKey

-- Trace -------------------------------------------------
[6/25/24, 22:08:26:414 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_verifyContentType_ctyNull
[6/25/24, 22:08:26:428 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_verifyContentType_ctyNull
[6/25/24, 22:08:26:428 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_verifyContentType_ctyEmpty
[6/25/24, 22:08:26:429 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_verifyContentType_ctyEmpty
[6/25/24, 22:08:26:429 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_verifyContentType_ctyNotJwt
[6/25/24, 22:08:26:430 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_verifyContentType_ctyNotJwt
[6/25/24, 22:08:26:430 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_verifyContentType_ctyIsJwt
[6/25/24, 22:08:26:431 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_verifyContentType_ctyIsJwt
[6/25/24, 22:08:26:431 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_justFourPeriods
[6/25/24, 22:08:26:432 UTC] 00000001 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting header from JWE string: org.jose4j.jwt.consumer.InvalidJwtException: Unable to parse what was expected to be the JWT Claim Set JSON: "" Additional details: [[16] Invalid JSON.]
[6/25/24, 22:08:26:432 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_justFourPeriods
[6/25/24, 22:08:26:432 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_onePeriod
[6/25/24, 22:08:26:432 UTC] 00000001 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting header from JWE string: org.jose4j.jwt.consumer.InvalidJwtException: Unable to parse what was expected to be the JWT Claim Set JSON: "" Additional details: [[16] Invalid JSON.]
[6/25/24, 22:08:26:432 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_onePeriod
[6/25/24, 22:08:26:433 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_notBase64Encoded
[6/25/24, 22:08:26:433 UTC] 00000001 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting header from JWE string: org.jose4j.jwt.consumer.InvalidJwtException: Unable to parse what was expected to be the JWT Claim Set JSON: "�?��?.��޶?�y�^" Additional details: [[16] Invalid JSON.]
[6/25/24, 22:08:26:433 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_notBase64Encoded
[6/25/24, 22:08:26:434 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_notBase64EncodedJson
[6/25/24, 22:08:26:434 UTC] 00000001 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting header from JWE string: org.jose4j.jwt.consumer.InvalidJwtException: Unable to parse what was expected to be the JWT Claim Set JSON: "�'l�g��" Additional details: [[16] Invalid JSON.]
[6/25/24, 22:08:26:434 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_notBase64EncodedJson
[6/25/24, 22:08:26:435 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_notJson
[6/25/24, 22:08:26:437 UTC] 00000001 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting header from JWE string: org.jose4j.jwt.consumer.InvalidJwtException: Unable to parse what was expected to be the JWT Claim Set JSON: "not json" Additional details: [[16] Invalid JSON.]
[6/25/24, 22:08:26:437 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_notJson
[6/25/24, 22:08:26:439 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_emptyJson
[6/25/24, 22:08:26:439 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_emptyJson
[6/25/24, 22:08:26:440 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_missingKidEntry
[6/25/24, 22:08:26:440 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_missingKidEntry
[6/25/24, 22:08:26:441 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_emptyKidEntry
[6/25/24, 22:08:26:441 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_emptyKidEntry
[6/25/24, 22:08:26:441 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_nonEmptyKidEntry
[6/25/24, 22:08:26:442 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_nonEmptyKidEntry
[6/25/24, 22:08:26:442 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_extractPayloadFromJweToken_invalidPkcsPadding
[6/25/24, 22:08:26:454 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_extractPayloadFromJweToken_invalidPkcsPadding
[6/25/24, 22:08:26:455 UTC] 00000001 id=00000000 SystemOut                                                    O Entering test: test_extractPayloadFromJweToken_headerAlgDoesNotMatchAlgInKey
[6/25/24, 22:08:26:458 UTC] 00000001 id=00000000 SystemOut                                                    O Exiting test: test_extractPayloadFromJweToken_headerAlgDoesNotMatchAlgInKey