> +
> +      return res;
> +   }
> +
> +   private static KeyPair getKeyPair(String keyPath) throws IOException {
> +      BufferedReader br =
> +              new BufferedReader(new 
> InputStreamReader(JoyentBlobRequestSigner.class.getResourceAsStream(keyPath)));
> +
> +      Security.addProvider(new BouncyCastleProvider());
> +      PEMReader pemReader = new PEMReader(br);
> +      try {
> +         return (KeyPair) pemReader.readObject();
> +      } finally {
> +         pemReader.close();
> +      }
> +   }

Ok, let's stay with Bouncycastle then. Consider, though, if it is worth moving 
the private key loading to a memoized supplier.

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

Reply via email to