From 2e208371f9a5fcbedf84ce9f92030c5884190e05 Mon Sep 17 00:00:00 2001 From: Charlie Hayes Date: Fri, 10 Aug 2018 16:04:02 -0500 Subject: [PATCH] Fixed instantiation of interface to use default implementation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fc6e096..f82e296 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ To create a Verifier, you must provide a Keychain and a KeyId. For example: // The UserKeysFingerprintKeyId class is provided by httpsig-ssh-jce to // construct keyIds using the Joyent API convention, "/${username}/keys/${fingerprint}" - Verifier verifier = new Verifier(keychain, new UserKeysFingerprintKeyId("admin")); + Verifier verifier = new DefaultVerifier(keychain, new UserKeysFingerprintKeyId("admin")); After parsing an Authorization and building the RequestContent object from the HTTP request, the server verifies the Authorization header using Verifier.verify()