@Test public void testVerifySignature() { ApiResponseSignatureVerifier verifier = new ApiResponseSignatureVerifier("X7qLTrsES31MzxxkxPPA-pAGGfU"); boolean actual = verifier.verifySignature("tests/logo.png", "1", "08d3107a5b2ad82e7d82c0b972218fbf20b5b1e0"); assertTrue(actual); }
public boolean verifySignature(String publicId, String version, String signature) { return Util.produceSignature(ObjectUtils.asMap( "public_id", emptyIfNull(publicId), "version", emptyIfNull(version)), secretKey, signatureAlgorithm).equals(signature); }
ApiResponseSignatureVerifier { public boolean verifySignature(String publicId, String version, String signature) { return Util.produceSignature(ObjectUtils.asMap( "public_id", emptyIfNull(publicId), "version", emptyIfNull(version)), secretKey, signatureAlgorithm).equals(signature); } }
ApiResponseSignatureVerifier { public boolean verifySignature(String publicId, String version, String signature) { return Util.produceSignature(ObjectUtils.asMap( "public_id", emptyIfNull(publicId), "version", emptyIfNull(version)), secretKey, signatureAlgorithm).equals(signature); } ApiResponseSignatureVerifier(String secretKey);  ApiResponseSignatureVerifier(String secretKey, SignatureAlgorithm signatureAlgorithm); }
ApiResponseSignatureVerifier { public boolean verifySignature(String publicId, String version, String signature) { return Util.produceSignature(ObjectUtils.asMap( "public_id", emptyIfNull(publicId), "version", emptyIfNull(version)), secretKey, signatureAlgorithm).equals(signature); } ApiResponseSignatureVerifier(String secretKey);  ApiResponseSignatureVerifier(String secretKey, SignatureAlgorithm signatureAlgorithm); boolean verifySignature(String publicId, String version, String signature); }
ApiResponseSignatureVerifier { public boolean verifySignature(String publicId, String version, String signature) { return Util.produceSignature(ObjectUtils.asMap( "public_id", emptyIfNull(publicId), "version", emptyIfNull(version)), secretKey, signatureAlgorithm).equals(signature); } ApiResponseSignatureVerifier(String secretKey);  ApiResponseSignatureVerifier(String secretKey, SignatureAlgorithm signatureAlgorithm); boolean verifySignature(String publicId, String version, String signature);  }