Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A40CE11EE0 for ; Fri, 4 Jul 2014 14:28:58 +0000 (UTC) Received: (qmail 12327 invoked by uid 500); 4 Jul 2014 14:28:58 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 12273 invoked by uid 500); 4 Jul 2014 14:28:58 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 12263 invoked by uid 99); 4 Jul 2014 14:28:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2014 14:28:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of glahiru@gmail.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-we0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2014 14:28:54 +0000 Received: by mail-we0-f173.google.com with SMTP id t60so1761713wes.32 for ; Fri, 04 Jul 2014 07:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yWhiLMM5PmJVONgZ4O3FnbPM2M6Swwn3dOBi6/hBIZs=; b=qDPdZduFImYCtG5ViayDNym5ZtYsMszt7xsCZIqPExK3r1lEBDRoAe+TjxeoFV8yab 61jIEhQU+RZr5TLQe+mvB4MTO9X+tlXtGPlI2EV5LJyeN6tCGkDE7rM9MSjJhSlCg8ZE qD9c2DrLXl1K97Z+KLRIAEHYR5a9qIZcEQ/5wBSbwmGWfS7KlRVPeAcnXUMfSTNdiK7s uFhrEqjQuAIOWwE2H9WMULG7eMNcOpfeiV79we7sCCfLQjcy04EXkGCvD/SM11Jtbv4C eAmp7oNgdzqCnoQnhf6SCQKviXF1TTbgqtikK+OeH1booQUZ8SKSUnrLygGGQ8Ejd4iW 0KnA== MIME-Version: 1.0 X-Received: by 10.194.179.4 with SMTP id dc4mr11223719wjc.32.1404484108517; Fri, 04 Jul 2014 07:28:28 -0700 (PDT) Received: by 10.216.199.71 with HTTP; Fri, 4 Jul 2014 07:28:28 -0700 (PDT) Date: Fri, 4 Jul 2014 10:28:28 -0400 Message-ID: Subject: credential store support for public/private key From: Lahiru Gunathilake To: dev Content-Type: multipart/alternative; boundary=089e013d115e6187a804fd5ef07e X-Virus-Checked: Checked by ClamAV on apache.org --089e013d115e6187a804fd5ef07e Content-Type: text/plain; charset=UTF-8 Hi All, Anyone tested this feature in airavata ? I wrote a test case and its not working and giving me NPEs, I am just curious whether anyone tested this code before committing. When I look at the code there is no way this is working but I just want to make sure I am using right code. Code like below will not work, SSHCredentialGenerator.generateCredential kpair.writePrivateKey(fileName,generateHash(tokenId,password).getBytes()); And here is how generateHash function looks like, private String generateHash(String tokenId, String password) { // TODO: Hash the password generated and return it return null; } What I am trying to do is write a test case and try to save a generated key pair to credential store (hosted one in gw111) and this operation will return me the public-key, and I will copy that to BRII and then try to get the token back from the token Id used to store the keypair. If anyone tested this code please give me some information, if this never worked I can look in to this in a different way rather assuming this is a working code. Lahiru -- System Analyst Programmer PTI Lab Indiana University --089e013d115e6187a804fd5ef07e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,

Anyone tested this feature in a= iravata ? I wrote a test case and its not working and giving me NPEs, I am = just curious whether anyone tested this code before committing. When I look= at the code there is no way this is working but I just want to make sure I= am using right code.

Code like below will not work,=C2=A0

SSHCredentialGenerator.generateCredential

= =C2=A0kpair.writePrivateKey(fileName,generateHash(tokenId,password).getByte= s());

And here is how generateHash function looks like,=C2=A0=

private String generateHash(String tokenId, = String password) {
<= /span>// TODO: Hash the password generated and return it
return null;
=
}

What I am trying to do is write a test case and try to save a gener= ated key pair to credential store (hosted one in gw111) and this operation = will return me the public-key, and I will copy that to BRII and then try to= get the token back from the token Id used to store the keypair.

If anyone tested this code please give me some informat= ion, if this never worked I can look in to this in a different way rather a= ssuming this is a working code.

Lahiru
-- System Analyst Programmer
PTI Lab
Indiana University
--089e013d115e6187a804fd5ef07e--