KeyInfo { public abstract String keyURL();  abstract void verify(); abstract SignatureVerifier getVerifier(); abstract Signer getSigner(); abstract String keyId(); abstract String keyURL(); abstract String type(); abstract String verifierKey(); abstract Map<String, Object> getJwkMap(); abstract String algorithm();  }
@Test public void HmacKeyShouldSetKeyUrlWithASecureProtocol() { HmacKeyInfo hmacKeyInfo = new HmacKeyInfo("key-id", "secret", "http: assertThat(hmacKeyInfo.keyURL(), is("https: }
@Test public void RsaKeyShouldSetKeyUrlWithASecureProtocol() { RsaKeyInfo hmacKeyInfo = new RsaKeyInfo("key-id", sampleRsaPrivateKey, "http: assertThat(hmacKeyInfo.keyURL(), is("https: }