BigInteger x = publicKey.getW().getAffineX();
BigInteger y = publicKey.getW().getAffineY();
JWSVerifier verifier = new ECDSAVerifier(x, y);
verifier.getIgnoredCriticalHeaderParameters().add("exp");
boolean verified = jwsObject.verify(verifier);
assertTrue("Verified signature", verified);
assertEquals("State check", JWSObject.State.VERIFIED, jwsObject.getState());
}