You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by cr...@apache.org on 2003/10/02 17:43:51 UTC

cvs commit: avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl HTTPSClientSourceFactory.java

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