Return-Path: Delivered-To: apmail-avalon-cvs-archive@www.apache.org Received: (qmail 43935 invoked from network); 2 Oct 2003 15:44:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Oct 2003 15:44:11 -0000 Received: (qmail 36584 invoked by uid 500); 2 Oct 2003 15:43:47 -0000 Delivered-To: apmail-avalon-cvs-archive@avalon.apache.org Received: (qmail 36509 invoked by uid 500); 2 Oct 2003 15:43:46 -0000 Mailing-List: contact cvs-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list cvs@avalon.apache.org Received: (qmail 36477 invoked by uid 500); 2 Oct 2003 15:43:46 -0000 Received: (qmail 36443 invoked from network); 2 Oct 2003 15:43:46 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 2 Oct 2003 15:43:46 -0000 Received: (qmail 43771 invoked by uid 1471); 2 Oct 2003 15:43:51 -0000 Date: 2 Oct 2003 15:43:51 -0000 Message-ID: <20031002154351.43770.qmail@minotaur.apache.org> From: crafterm@apache.org To: avalon-excalibur-cvs@apache.org Subject: cvs commit: avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl HTTPSClientSourceFactory.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N crafterm 2003/10/02 08:43:51 Modified: sourceresolve/src/java/org/apache/excalibur/source/impl HTTPSClientSourceFactory.java Log: Relaxed JSSE provider specification requirement - in JDK/JRE 1.4.x its already specified, and in 1.3.x people might modify their java.security file anyway. Revision Changes Path 1.4 +13 -4 avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl/HTTPSClientSourceFactory.java Index: HTTPSClientSourceFactory.java =================================================================== RCS file: /home/cvs/avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl/HTTPSClientSourceFactory.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- HTTPSClientSourceFactory.java 14 Jul 2003 12:52:56 -0000 1.3 +++ HTTPSClientSourceFactory.java 2 Oct 2003 15:43:51 -0000 1.4 @@ -115,9 +115,18 @@ private void setProvider( final Parameters params ) throws ParameterException { - Security.addProvider( - (Provider) getInstance( params.getParameter( SSL_PROVIDER ) ) - ); + String provider = null; + + try + { + provider = params.getParameter( SSL_PROVIDER ); + } + catch ( final ParameterException e ) + { + return; // this is ok, means no custom SSL provider + } + + Security.addProvider( (Provider) getInstance( provider ) ); } /** --------------------------------------------------------------------- To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org For additional commands, e-mail: cvs-help@avalon.apache.org