APISonar


io.helidon.common.Errors.log

> io > helidon > common > Errors > log
io APIs helidon APIs common APIs Errors APIs log APIs

Example 1
public void testSingatureNoAlgNoKid() {
        Jwt jwt = Jwt.builder().build();
        Jwk defaultJwk = Jwk.NONE_JWK;

        SignedJwt signed = SignedJwt.sign(jwt, customKeys);
        assertThat(signed, notNullValue());
        assertThat(signed.getSignature(), notNullValue());
        assertThat(signed.getSignature(), is(new byte[0]));
        Errors errors = signed.verifySignature(customKeys, defaultJwk);
        assertThat(errors, notNullValue());
        errors.log(LOGGER);
        errors.checkValid();
    }