From dev-return-27608-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Thu Jun 07 10:13:37 2007 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 71110 invoked from network); 7 Jun 2007 10:13:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jun 2007 10:13:35 -0000 Received: (qmail 91315 invoked by uid 500); 7 Jun 2007 10:13:36 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 91285 invoked by uid 500); 7 Jun 2007 10:13:35 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 91270 invoked by uid 99); 7 Jun 2007 10:13:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 03:13:35 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of liyilei1979@gmail.com designates 209.85.134.186 as permitted sender) Received: from [209.85.134.186] (HELO mu-out-0910.google.com) (209.85.134.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 03:13:29 -0700 Received: by mu-out-0910.google.com with SMTP id w1so444011mue for ; Thu, 07 Jun 2007 03:13:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=iclb0sB6cXqU44o051UQUs03yjsggsqz5P1AKRZudimKDHwmvY0CeMyynR5fsB/XqVAEOzNHCDLAYP79IUZXYX0iMzm8wPwpMwJUt9dALVgCKQ8XEYsRCjQHoi/kbJi2r9nJ6fPoGOC4IXdiWZaNgb1UzQgiP6gKqOBrinnsLS8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eFnoWKzlCqNAK9hAqzUm8fbTTnV6gKq4PpAvc/tUX967CqbY8SqvvPlR8/SqNJPhdK67UGc2SpzbIDNqglOwgmthVhq65u1FWHH9KS/FMei4IEnERPkmP5eb0wTJaErvV3qw0aPRquTQdTIwbSiimpoTw9+0LfO9t2Pb3LzAJII= Received: by 10.82.100.1 with SMTP id x1mr2878507bub.1181211187169; Thu, 07 Jun 2007 03:13:07 -0700 (PDT) Received: by 10.82.161.9 with HTTP; Thu, 7 Jun 2007 03:13:07 -0700 (PDT) Message-ID: Date: Thu, 7 Jun 2007 18:13:07 +0800 From: "Leo Li" To: dev@harmony.apache.org Subject: Re: [classlib][security]Question about AlgNameMapper to get information from loaded security providers. In-Reply-To: <6e47b64f0706062358j2a37331dl2e985d815fc3df01@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_43199_27846042.1181211187090" References: <6e47b64f0706052237j69fe383cvab217028bb711557@mail.gmail.com> <6e47b64f0706062358j2a37331dl2e985d815fc3df01@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_43199_27846042.1181211187090 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I see. That is all right. Thank you, Stepan. On 6/7/07, Stepan Mishura wrote: > > On 6/7/07, Leo Li wrote: > > Hi, Stepan: > > What I am worrying is that since the provider will give specific > > mappings, if a new provider is added, do we need also to append its > specific > > mappings to AlgNameMapper? > > > > I'm not sure that is needed to implement dynamic set of mappings in > AlgNameMapper (i.e. adding/removing a provider changes the set). I > think the class implementation was based on assumption that all > required providers were installed before so it doesn't make sense to > track newly added providers. But if there is an app. that relies on > such behavior then we may consider to implement it. > > BTW, you may wish to test RI to see its behavior in this case. > > Thanks, > Stepan > > > > > On 6/6/07, Stepan Mishura wrote: > > > > > > On 6/5/07, Leo Li wrote: > > > > Hi, > > > > I found that org.apache.harmony.security.utils.AlgNameMapper will > get > > > > information from loaded security providers and a known-mapping as > well. > > > So > > > > my quesion is: > > > > 1.Do we have to consider the influence of add or removing > > > security > > > > providers? From the code, the AlgNameMapper will remain unchanged > after > > > it > > > > is initialized. > > > > > > Hi Leo, > > > > > > Yes, AlgNameMapper is not affected by adding/removing security > > > providers. Could you describe a reason why we should consider it? > > > > > > > 2.Do we have to get the information out of the security > > > providers? > > > > Is it due to the incompleteness of the known-mapping table? > > > > > > > > > > There may be provider specific mappings. > > > > > > Thanks, > > > Stepan. > > > > > > > Thank you. > > > > -- > > > > Leo Li > > > > China Software Development Lab, IBM > > > > > > > > > > > > > > > -- > > Leo Li > > China Software Development Lab, IBM > > > -- Leo Li China Software Development Lab, IBM ------=_Part_43199_27846042.1181211187090--