Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-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 4C8571734E for ; Fri, 29 Jan 2016 15:24:07 +0000 (UTC) Received: (qmail 99178 invoked by uid 500); 29 Jan 2016 15:23:40 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 99094 invoked by uid 500); 29 Jan 2016 15:23:40 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 99051 invoked by uid 99); 29 Jan 2016 15:23:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2016 15:23:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EB4752C1F54 for ; Fri, 29 Jan 2016 15:23:39 +0000 (UTC) Date: Fri, 29 Jan 2016 15:23:39 +0000 (UTC) From: "Shawn McKinney (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FC-143) Let LdapClientTrustStoreManager read trust store from jar MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FC-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123584#comment-15123584 ] Shawn McKinney commented on FC-143: ----------------------------------- Jan, here is what I think needs to be done here: 1. remove the pushbackstream (not needed here) 2. leave code to find on classpath 3. readd code to choose file from fully qualified path. WDYT? > Let LdapClientTrustStoreManager read trust store from jar > --------------------------------------------------------- > > Key: FC-143 > URL: https://issues.apache.org/jira/browse/FC-143 > Project: FORTRESS > Issue Type: Improvement > Affects Versions: 1.0.0-RC41 > Reporter: Jan Sindberg > Priority: Minor > Fix For: 1.0.0-RC41 > > Attachments: [FC-143]_-_Let_LdapClientTrustStoreManager_read_trust_store_from_jar.patch > > > *Use case * > Creating a small utility to initialize configuration (setting system properties) which serves up the right parameters and also contains trust stores. > That way we can quickly set up for test locally at developer machines, as well on test environments and prod. > *Problem* > LdapClientTrustStoreManager expects a fully-qualified name of a Java TrustStore on local file system. > *Proposed solution* > Get an input stream to the trust store. Test if it is a local file. If it is not, then test if an inputstream can be created from resources. > Patch attached. -- This message was sent by Atlassian JIRA (v6.3.4#6332)