> +      } catch (InvalidKeyException e) {
> +         throw new HttpException("invalid key", e);
> +      } catch (SignatureException e) {
> +         throw new HttpException("invalid signature", e);
> +      } catch (UnsupportedEncodingException e) {
> +         throw new HttpException("invalid encoding", e);
> +      }
> +
> +      return res;
> +   }
> +
> +   private static KeyPair getKeyPair(String keyPath) throws IOException {
> +      BufferedReader br =
> +              new BufferedReader(new 
> InputStreamReader(JoyentBlobRequestSigner.class.getResourceAsStream(keyPath)));
> +
> +      Security.addProvider(new BouncyCastleProvider());

You should be able to remove this line if the Bouncy castle driver module has 
been configured.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/30/files#r7259506

Reply via email to