@Test public void testUseSig() { Jwk jwk = customKeys.forKeyId("HS_512").get(); assertThat(jwk.supports(Jwk.USE_SIGNATURE, Jwk.OPERATION_SIGN), is(true)); assertThat(jwk.supports(Jwk.USE_SIGNATURE, Jwk.OPERATION_VERIFY), is(true)); assertThat(jwk.supports(Jwk.USE_ENCRYPTION, Jwk.OPERATION_ENCRYPT), is(false)); assertThat(jwk.supports(Jwk.USE_ENCRYPTION, Jwk.OPERATION_DECRYPT), is(false)); }
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();  }