> +        } 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());
> +        PEMReader pemReader = new PEMReader(br);

Can the key be read using the jclouds Pems utility class?

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

Reply via email to