@Test public void testNone() { Jwk jwk = customKeys.forKeyId("none").get(); boolean signed = jwk.verifySignature("test".getBytes(), Jwk.EMPTY_BYTES); assertThat(signed, is(true)); }
public Optional<Jwk> forKeyId(String keyId) { return Optional.ofNullable(keyMap.get(keyId)); }
JwkKeys { public Optional<Jwk> forKeyId(String keyId) { return Optional.ofNullable(keyMap.get(keyId)); } }
JwkKeys { public Optional<Jwk> forKeyId(String keyId) { return Optional.ofNullable(keyMap.get(keyId)); } private  JwkKeys(Builder builder); }
JwkKeys { public Optional<Jwk> forKeyId(String keyId) { return Optional.ofNullable(keyMap.get(keyId)); } private  JwkKeys(Builder builder); static Builder builder(); static JwkKeys create(JsonObject json); Optional<Jwk> forKeyId(String keyId); List<Jwk> keys(); }
JwkKeys { public Optional<Jwk> forKeyId(String keyId) { return Optional.ofNullable(keyMap.get(keyId)); } private  JwkKeys(Builder builder); static Builder builder(); static JwkKeys create(JsonObject json); Optional<Jwk> forKeyId(String keyId); List<Jwk> keys();  }