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

13

tests

0

failures

0

ignored

0.027s

duration

100%

successful

Tests

Test Duration Result
test_getKidFromJweString_emptyJson 0.001s passed
test_getKidFromJweString_emptyKidEntry 0s passed
test_getKidFromJweString_justFourPeriods 0.002s passed
test_getKidFromJweString_missingKidEntry 0.001s passed
test_getKidFromJweString_nonEmptyKidEntry 0s passed
test_getKidFromJweString_notBase64Encoded 0s passed
test_getKidFromJweString_notBase64EncodedJson 0s passed
test_getKidFromJweString_notJson 0.002s 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.018s passed

Standard output

[WARNING ] CWWKS6055W: The [test_getSignatureAlgorithm_betaDisabled_betaAlgorithm] configuration specifies the ES256 signature algorithm, but that algorithm is only available in the beta edition. The RS256 signature algorithm is used instead.
[WARNING ] CWWKS6055W: The [test_getSignatureAlgorithm_betaDisabled_betaAlgorithm_callMethodTwice] configuration specifies the ES256 signature algorithm, but that algorithm is only available in the beta edition. The RS256 signature algorithm is used instead.
[WARNING ] MP_CONFIG_PUBLIC_KEY_ALG_NOT_SUPPORTED 
                                                                                                               NO256
                                                                                                               RS256
[WARNING ] MP_CONFIG_PUBLIC_KEY_ALG_NOT_SUPPORTED 
                                                                                                               unknown algorithm
                                                                                                               RS256
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

-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[13/01/2021, 16:17:22:826 GMT] 00000015 SystemOut                                                    O Entering test: test_verifyContentType_ctyNull
[13/01/2021, 16:17:22:844 GMT] 00000015 SystemOut                                                    O Exiting test: test_verifyContentType_ctyNull
[13/01/2021, 16:17:22:844 GMT] 00000015 SystemOut                                                    O Entering test: test_verifyContentType_ctyEmpty
[13/01/2021, 16:17:22:845 GMT] 00000015 SystemOut                                                    O Exiting test: test_verifyContentType_ctyEmpty
[13/01/2021, 16:17:22:846 GMT] 00000015 SystemOut                                                    O Entering test: test_verifyContentType_ctyNotJwt
[13/01/2021, 16:17:22:846 GMT] 00000015 SystemOut                                                    O Exiting test: test_verifyContentType_ctyNotJwt
[13/01/2021, 16:17:22:847 GMT] 00000015 SystemOut                                                    O Entering test: test_verifyContentType_ctyIsJwt
[13/01/2021, 16:17:22:847 GMT] 00000015 SystemOut                                                    O Exiting test: test_verifyContentType_ctyIsJwt
[13/01/2021, 16:17:22:848 GMT] 00000015 SystemOut                                                    O Entering test: test_getKidFromJweString_justFourPeriods
[13/01/2021, 16:17:22:849 GMT] 00000015 SystemOut                                                    O Exiting test: test_getKidFromJweString_justFourPeriods
[13/01/2021, 16:17:22:850 GMT] 00000015 SystemOut                                                    O Entering test: test_getKidFromJweString_onePeriod
[13/01/2021, 16:17:22:850 GMT] 00000015 SystemOut                                                    O Exiting test: test_getKidFromJweString_onePeriod
[13/01/2021, 16:17:22:851 GMT] 00000015 SystemOut                                                    O Entering test: test_getKidFromJweString_notBase64Encoded
[13/01/2021, 16:17:22:851 GMT] 00000015 SystemOut                                                    O Exiting test: test_getKidFromJweString_notBase64Encoded
[13/01/2021, 16:17:22:851 GMT] 00000015 SystemOut                                                    O Entering test: test_getKidFromJweString_notBase64EncodedJson
[13/01/2021, 16:17:22:852 GMT] 00000015 SystemOut                                                    O Exiting test: test_getKidFromJweString_notBase64EncodedJson
[13/01/2021, 16:17:22:852 GMT] 00000015 SystemOut                                                    O Entering test: test_getKidFromJweString_notJson
[13/01/2021, 16:17:22:854 GMT] 00000015 SystemOut                                                    O Exiting test: test_getKidFromJweString_notJson
[13/01/2021, 16:17:22:855 GMT] 00000015 SystemOut                                                    O Entering test: test_getKidFromJweString_emptyJson
[13/01/2021, 16:17:22:855 GMT] 00000015 SystemOut                                                    O Exiting test: test_getKidFromJweString_emptyJson
[13/01/2021, 16:17:22:856 GMT] 00000015 SystemOut                                                    O Entering test: test_getKidFromJweString_missingKidEntry
[13/01/2021, 16:17:22:856 GMT] 00000015 SystemOut                                                    O Exiting test: test_getKidFromJweString_missingKidEntry
[13/01/2021, 16:17:22:857 GMT] 00000015 SystemOut                                                    O Entering test: test_getKidFromJweString_emptyKidEntry
[13/01/2021, 16:17:22:857 GMT] 00000015 SystemOut                                                    O Exiting test: test_getKidFromJweString_emptyKidEntry
[13/01/2021, 16:17:22:858 GMT] 00000015 SystemOut                                                    O Entering test: test_getKidFromJweString_nonEmptyKidEntry
[13/01/2021, 16:17:22:858 GMT] 00000015 SystemOut                                                    O Exiting test: test_getKidFromJweString_nonEmptyKidEntry

-- Trace -------------------------------------------------
[13/01/2021, 16:17:22:826 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_verifyContentType_ctyNull
[13/01/2021, 16:17:22:844 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_verifyContentType_ctyNull
[13/01/2021, 16:17:22:844 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_verifyContentType_ctyEmpty
[13/01/2021, 16:17:22:845 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_verifyContentType_ctyEmpty
[13/01/2021, 16:17:22:846 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_verifyContentType_ctyNotJwt
[13/01/2021, 16:17:22:846 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_verifyContentType_ctyNotJwt
[13/01/2021, 16:17:22:847 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_verifyContentType_ctyIsJwt
[13/01/2021, 16:17:22:847 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_verifyContentType_ctyIsJwt
[13/01/2021, 16:17:22:848 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_justFourPeriods
[13/01/2021, 16:17:22:849 GMT] 00000015 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting kid from JWE string: org.jose4j.lang.JoseException: Parsing error: org.jose4j.json.internal.json_simple.parser.ParseException: Unexpected token END OF FILE at position 0.
[13/01/2021, 16:17:22:849 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_justFourPeriods
[13/01/2021, 16:17:22:850 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_onePeriod
[13/01/2021, 16:17:22:850 GMT] 00000015 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting kid from JWE string: org.jose4j.lang.JoseException: Parsing error: org.jose4j.json.internal.json_simple.parser.ParseException: Unexpected token END OF FILE at position 0.
[13/01/2021, 16:17:22:850 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_onePeriod
[13/01/2021, 16:17:22:851 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_notBase64Encoded
[13/01/2021, 16:17:22:851 GMT] 00000015 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting kid from JWE string: org.jose4j.lang.JoseException: Parsing error: org.jose4j.json.internal.json_simple.parser.ParseException: Unexpected character (�) at position 0.
[13/01/2021, 16:17:22:851 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_notBase64Encoded
[13/01/2021, 16:17:22:851 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_notBase64EncodedJson
[13/01/2021, 16:17:22:852 GMT] 00000015 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting kid from JWE string: org.jose4j.lang.JoseException: Parsing error: org.jose4j.json.internal.json_simple.parser.ParseException: Unexpected character (�) at position 0.
[13/01/2021, 16:17:22:852 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_notBase64EncodedJson
[13/01/2021, 16:17:22:852 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_notJson
[13/01/2021, 16:17:22:854 GMT] 00000015 id=00000000 com.ibm.ws.security.jwt.utils.JweHelper                      3 Caught exception getting kid from JWE string: org.jose4j.lang.JoseException: Parsing error: org.jose4j.json.internal.json_simple.parser.ParseException: Unexpected character (n) at position 0.
[13/01/2021, 16:17:22:854 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_notJson
[13/01/2021, 16:17:22:855 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_emptyJson
[13/01/2021, 16:17:22:855 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_emptyJson
[13/01/2021, 16:17:22:856 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_missingKidEntry
[13/01/2021, 16:17:22:856 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_missingKidEntry
[13/01/2021, 16:17:22:857 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_emptyKidEntry
[13/01/2021, 16:17:22:857 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_emptyKidEntry
[13/01/2021, 16:17:22:858 GMT] 00000015 id=00000000 SystemOut                                                    O Entering test: test_getKidFromJweString_nonEmptyKidEntry
[13/01/2021, 16:17:22:858 GMT] 00000015 id=00000000 SystemOut                                                    O Exiting test: test_getKidFromJweString_nonEmptyKidEntry