@Test public void shouldBeAbleToVerify() throws Exception { assertThat(new HmacKey("", "").canVerify(), is(true)); }
public boolean canVerify() { return true; }
HmacKey implements Key { public boolean canVerify() { return true; } }
HmacKey implements Key { public boolean canVerify() { return true; } HmacKey(String keyId, String secret); }
HmacKey implements Key { public boolean canVerify() { return true; } HmacKey(String keyId, String secret); String getId(); Set<Algorithm> getAlgorithms(); boolean canVerify(); boolean verify(Algorithm algorithm, byte[] contentBytes, byte[] signatureBytes); boolean canSign(); byte[] sign(Algorithm algorithm, byte[] contentBytes); }
HmacKey implements Key { public boolean canVerify() { return true; } HmacKey(String keyId, String secret); String getId(); Set<Algorithm> getAlgorithms(); boolean canVerify(); boolean verify(Algorithm algorithm, byte[] contentBytes, byte[] signatureBytes); boolean canSign(); byte[] sign(Algorithm algorithm, byte[] contentBytes);  }