void function ( ) { assert validChain . length == 4 ; final X509Certificate [ ] loc0 = new X509Certificate [ 3 ] ; loc0 [ 0 ] = validChain [ 0 ] ; loc0 [ 1 ] = validChain [ 2 ] ; loc0 [ 2 ] = validChain [ 3 ] ; systemUnderTest . checkClientTrusted ( loc0 , "srini_string" ) ; }
verifies that a chain that is missing an intermediate certificate is rejected . concode_field_sep X509Certificate[] untrustedCAChain concode_elem_sep KeyStore trustStore concode_elem_sep String location concode_elem_sep OpenfireX509TrustManager systemUnderTest concode_elem_sep X509Certificate[] expiredIntChain concode_elem_sep X509Certificate[] expiredRootChain concode_elem_sep X509Certificate[] validChain concode_field_sep void testAcceptedIssuersAreAllValid concode_elem_sep void testInvalidChainExpiredTrustAnchor concode_elem_sep void testValidChain concode_elem_sep void testInvalidChainExpiredIntermediate concode_elem_sep void createFixture concode_elem_sep void testInvalidChainCAnotTrusted concode_elem_sep X getLast concode_elem_sep void tearDown